- Here is an example on throwing an exception:
{{{vector< float > EMData::calc_fourier_shell_correlation(EMData * with) {
- if (!with) {
throw NullPointerException("NULL input image");
- LOGERR("images not same size");
throw ImageFormatException( "images not same size");
//... } }}}