EMAN2
Classes | Namespaces | Defines
exception.h File Reference
#include <log.h>
#include <string>
#include <sstream>
Include dependency graph for exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EMAN::E2Exception
 E2Exception class is the parent class of all EMAN2 E2Exceptions. More...
class  EMAN::_NotExistingObjectException
 Used when an object type, like an EMObject type, doesn't exist. More...
class  EMAN::_ImageFormatException
 Used when an image is not in the expected format. More...
class  EMAN::_ImageDimensionException
 Used when an image is not in the expected dimension. More...
class  EMAN::_FileAccessException
 Used when a file access error occurs. More...
class  EMAN::_ImageReadException
 Used when an error occurs at image reading time. More...
class  EMAN::_ImageWriteException
 Used when an error occurs at image writing time. More...
class  EMAN::_NullPointerException
 Used when a NULL is given to a pointer that should not be NULL. More...
class  EMAN::_TypeException
 Used when a type cast error occurs. More...
class  EMAN::_InvalidValueException
 Used when an invalid integer value is given. More...
class  EMAN::_InvalidStringException
 Used when an invalid (format) string is given. More...
class  EMAN::_OutofRangeException
 Used when the given value is out of range. More...
class  EMAN::_InvalidCallException
class  EMAN::_InvalidParameterException
class  EMAN::_EmptyContainerException
 Used when an argument container is empty, such as a vector. More...
class  EMAN::_BadAllocException
 Used when memory allocation goes wrong... More...
class  EMAN::_UnexpectedBehaviorException
 Used when internal behavior is unexpected A generic kind of exception. More...

Namespaces

namespace  EMAN
 

df3 file format (http://www.povray.org/documentation/view/3.6.1/374) Header: The df3 format consists of a 6 byte header of three 16-bit integers with high order byte first.


Defines

#define NotExistingObjectException(objname, desc)   _NotExistingObjectException(objname, __FILE__, __LINE__, desc)
#define ImageFormatException(desc)   _ImageFormatException(desc, __FILE__, __LINE__)
#define ImageDimensionException(desc)   _ImageDimensionException(desc, __FILE__, __LINE__)
#define FileAccessException(filename)   _FileAccessException(filename, __FILE__, __LINE__)
#define ImageReadException(filename, desc)   _ImageReadException(filename, __FILE__, __LINE__, desc)
#define ImageWriteException(imagename, desc)   _ImageWriteException(imagename, __FILE__, __LINE__, desc)
#define NullPointerException(desc)   _NullPointerException(__FILE__, __LINE__, desc)
#define TypeException(desc, type)   _TypeException(desc, type, __FILE__, __LINE__)
#define InvalidValueException(val, desc)   _InvalidValueException(val, __FILE__, __LINE__, desc)
#define InvalidStringException(str, desc)   _InvalidStringException(str, __FILE__, __LINE__, desc)
#define OutofRangeException(low, high, input, objname)   _OutofRangeException(low, high, input, __FILE__, __LINE__, objname)
#define InvalidCallException(desc)   _InvalidCallException(__FILE__, __LINE__, desc)
#define InvalidParameterException(desc)   _InvalidParameterException(__FILE__, __LINE__, desc)
#define EmptyContainerException(desc)   _EmptyContainerException(__FILE__, __LINE__, desc)
#define BadAllocException(desc)   _BadAllocException(__FILE__, __LINE__, desc)
#define UnexpectedBehaviorException(desc)   _UnexpectedBehaviorException(__FILE__, __LINE__, desc)

Define Documentation

#define BadAllocException (   desc)    _BadAllocException(__FILE__, __LINE__, desc)

Definition at line 395 of file exception.h.

Referenced by EMAN::EMData::get_attr(), and EMAN::EMData::set_size().

#define EmptyContainerException (   desc)    _EmptyContainerException(__FILE__, __LINE__, desc)

Definition at line 382 of file exception.h.

Referenced by EMAN::Util::get_stats(), and EMAN::Util::get_stats_cstyle().

#define FileAccessException (   filename)    _FileAccessException(filename, __FILE__, __LINE__)
#define ImageDimensionException (   desc)    _ImageDimensionException(desc, __FILE__, __LINE__)

Definition at line 174 of file exception.h.

Referenced by EMAN::FRM2DAligner::align(), EMAN::Refine3DAlignerGrid::align(), EMAN::Refine3DAlignerQuaternion::align(), EMAN::TranslationalAligner::align(), EMAN::ShapeAnalyzer::analyze(), EMAN::InertiaMatrixAnalyzer::analyze(), EMAN::TransformProcessor::assert_valid_aspect(), EMAN::EMData::calc_az_dist(), EMAN::EMData::calc_ccfx(), EMAN::EMData::calc_dist(), EMAN::EMData::calc_fast_sigma_image(), EMAN::NormalizeMaskProcessor::calc_mean(), EMAN::EMData::calc_radial_dist(), EMAN::NormalizeMaskProcessor::calc_sigma(), EMAN::EMData::clip_inplace(), EMAN::OptVarianceCmp::cmp(), EMAN::Util::compress_image_mask(), EMAN::EMData::cut_slice(), EMAN::Util::decimate(), EMAN::EMData::delete_disconnected_regions(), EMAN::EMData::do_radon(), EMAN::EMData::dot_rotate_translate(), EMAN::EMData::extract_plane(), EMAN::EMData::extract_plane_rect(), EMAN::EMData::extract_plane_rect_fast(), EMAN::EMData::extractline(), EMAN::EMData::extractpoint(), EMAN::Util::extractpoint2(), EMAN::filt_dilation_(), EMAN::filt_erosion_(), EMAN::filt_median_(), EMAN::EMData::find_3d_threshold(), EMAN::EMData::fouriergridrot2d(), EMAN::EMData::fouriergridrot_shift2d(), EMAN::EMData::FourInterpol(), EMAN::EMData::FourTruncate(), EMAN::EMData::get_2dcview(), EMAN::EMData::get_2dview(), EMAN::EMData::get_clip(), EMAN::IntTranslateProcessor::get_clip_region(), EMAN::EMData::get_col(), EMAN::EMData::get_row(), EMAN::Util::get_slice(), EMAN::EMData::get_top_half(), EMAN::EMData::helicise(), EMAN::EMData::helicise_grid(), EMAN::Util::histc(), EMAN::Util::histogram(), EMAN::Util::infomask(), EMAN::EMData::insert_scaled_sum(), EMAN::FourierReconstructorSimple2D::insert_slice(), EMAN::EMData::little_big_dot(), EMAN::EMData::mult_complex_efficient(), EMAN::EMData::mult_radial(), EMAN::Util::pad(), EMAN::ConvolutionKernelProcessor::process(), EMAN::ScaleTransformProcessor::process(), EMAN::WatershedProcessor::process(), EMAN::MeanShrinkProcessor::process(), EMAN::ApplySymProcessor::process(), EMAN::BinaryOperateProcessor< Type >::process_inplace(), EMAN::RotateInFSProcessor::process_inplace(), EMAN::ZGradientProcessor::process_inplace(), EMAN::YGradientProcessor::process_inplace(), EMAN::XGradientProcessor::process_inplace(), EMAN::Rotate180Processor::process_inplace(), EMAN::ScaleTransformProcessor::process_inplace(), EMAN::WaveletProcessor::process_inplace(), EMAN::RampProcessor::process_inplace(), EMAN::TestImageCylinder::process_inplace(), EMAN::TestImageScurve::process_inplace(), EMAN::AutoMask3D2Processor::process_inplace(), EMAN::AutoMask2DProcessor::process_inplace(), EMAN::RotationalSubstractProcessor::process_inplace(), EMAN::RotationalAverageProcessor::process_inplace(), EMAN::ZeroEdgePlaneProcessor::process_inplace(), EMAN::ZeroEdgeRowProcessor::process_inplace(), EMAN::DecayEdgeProcessor::process_inplace(), EMAN::MeanZeroEdgeProcessor::process_inplace(), EMAN::BeamstopProcessor::process_inplace(), EMAN::SigmaZeroEdgeProcessor::process_inplace(), EMAN::RealToFFTProcessor::process_inplace(), EMAN::GradientPlaneRemoverProcessor::process_inplace(), EMAN::NonConvexProcessor::process_inplace(), EMAN::FlattenBackgroundProcessor::process_inplace(), EMAN::GradientRemoverProcessor::process_inplace(), EMAN::MeanShrinkProcessor::process_inplace(), EMAN::CutoffBlockProcessor::process_inplace(), EMAN::DiffBlockProcessor::process_inplace(), EMAN::LinearPyramidProcessor::process_inplace(), EMAN::FourierGriddingProjector::project3d(), EMAN::MaxValProjector::project3d(), EMAN::StandardProjector::project3d(), EMAN::GaussFFTProjector::project3d(), EMAN::Util::reconstitute_image_mask(), EMAN::EMData::render_amp24(), EMAN::EMData::render_ap24(), EMAN::EMData::rot_scale_conv(), EMAN::EMData::rot_scale_conv7(), EMAN::EMData::rot_scale_conv_new(), EMAN::EMData::rot_scale_conv_new_3D(), EMAN::EMData::rot_scale_conv_new_background(), EMAN::EMData::rot_scale_conv_new_background_3D(), EMAN::EMData::rot_scale_trans(), EMAN::EMData::rot_scale_trans2D(), EMAN::EMData::rot_scale_trans2D_background(), EMAN::EMData::rot_scale_trans_background(), EMAN::EMData::rotate_x(), EMAN::EMData::rotavg(), EMAN::EMData::rotavg_i(), EMAN::rsconvolution(), EMAN::EMData::set_col(), EMAN::EMData::set_row(), EMAN::FourierReconstructor::setup(), EMAN::EMData::setup4slice(), EMAN::FourierReconstructor::setup_seed(), EMAN::Phase180Processor::swap_central_slices_180(), EMAN::Phase180Processor::swap_corners_180(), EMAN::EMData::uncut_slice(), EMAN::EMData::unwrap(), EMAN::Util::window(), EMAN::EMData::window_center(), EMAN::RT3DSphereAligner::xform_align_nbest(), EMAN::RT3DGridAligner::xform_align_nbest(), and EMAN::EMData::zero_corner_circulant().

#define ImageFormatException (   desc)    _ImageFormatException(desc, __FILE__, __LINE__)

Definition at line 155 of file exception.h.

Referenced by EMAN::EMData::add(), EMAN::EMData::add_incoherent(), EMAN::EMData::addsquare(), EMAN::EMData::apply_radial_func(), EMAN::EMData::calc_ccfx(), EMAN::EMData::calc_dist(), EMAN::EMData::calc_fourier_shell_correlation(), EMAN::EMData::calc_mutual_correlation(), EMAN::EMData::cconj(), EMAN::EMData::center_origin(), EMAN::EMData::center_origin_fft(), EMAN::EMData::center_origin_yz(), EMAN::LodCmp::cmp(), EMAN::CccCmp::cmp(), EMAN::EMData::common_lines(), EMAN::EMData::common_lines_real(), EMAN::EMAN2Ctf::compute_1d_fromimage(), EMAN::EMData::conjg(), EMAN::EMData::convolute(), EMAN::LowpassAutoBProcessor::create_radial_func(), EMAN::EMData::cut_slice(), EMAN::Util::cyclicshift(), EMAN::EMData::delete_disconnected_regions(), EMAN::EMData::depad(), EMAN::EMData::depad_corner(), EMAN::EMData::div(), EMAN::Util::div_filter(), EMAN::EMData::divkbsinh(), EMAN::EMData::divkbsinh_rect(), EMAN::Util::divn_filter(), EMAN::EMData::do_fft(), EMAN::EMData::do_fft_inplace(), EMAN::EMData::do_ift(), EMAN::EMData::do_ift_inplace(), EMAN::EMData::do_radon(), EMAN::EMData::dot_rotate_translate(), EMAN::EMData::extract_plane(), EMAN::EMData::extract_plane_rect(), EMAN::EMData::extract_plane_rect_fast(), EMAN::EMData::extractline(), EMAN::EMData::extractpoint(), EMAN::EMData::fft_shuffle(), EMAN::EMData::FH2F(), EMAN::EMData::find_pixels_with_value(), EMAN::Phase180Processor::fourier_phaseshift180(), EMAN::EMData::fouriergridrot2d(), EMAN::EMData::fouriergridrot_shift2d(), EMAN::EMData::FourInterpol(), EMAN::EMData::get_attr(), EMAN::EMData::get_fft_amplitude(), EMAN::EMData::get_fft_amplitude2D(), EMAN::EMData::get_fft_phase(), EMAN::EMUtil::get_image_type(), EMAN::EMUtil::get_imageio(), EMAN::SpiderIO::get_nimg(), EMAN::EMUtil::getRenderMinMax(), EMAN::EMData::helicise(), EMAN::EMData::helicise_grid(), EMAN::Util::histc(), EMAN::Util::histogram(), EMAN::Util::im_diff(), EMAN::Util::infomask(), EMAN::FourierReconstructorSimple2D::insert_slice(), EMAN::EMData::log(), EMAN::EMData::log10(), EMAN::EMData::mult(), EMAN::EMData::mult_complex_efficient(), EMAN::EMData::norm_pad(), EMAN::BooleanShrinkProcessor::process(), EMAN::MeanShrinkProcessor::process(), EMAN::MedianShrinkProcessor::process(), EMAN::ZGradientProcessor::process_inplace(), EMAN::YGradientProcessor::process_inplace(), EMAN::XGradientProcessor::process_inplace(), EMAN::ClampingProcessor::process_inplace(), EMAN::RadialProcessor::process_inplace(), EMAN::AddRandomNoiseProcessor::process_inplace(), EMAN::FourierToCenterProcessor::process_inplace(), EMAN::FourierToCornerProcessor::process_inplace(), EMAN::BinarizeFourierProcessor::process_inplace(), EMAN::RealToFFTProcessor::process_inplace(), EMAN::BooleanShrinkProcessor::process_inplace(), EMAN::MeanShrinkProcessor::process_inplace(), EMAN::FFTResampleProcessor::process_inplace(), EMAN::MedianShrinkProcessor::process_inplace(), EMAN::FourierGriddingProjector::project3d(), EMAN::EMData::read_binedimage(), EMAN::EMData::read_image(), EMAN::EMData::real2FH(), EMAN::EMData::scale_factors(), EMAN::EMData::setup4slice(), EMAN::EMData::sqrt(), EMAN::EMData::sub(), EMAN::EMData::subsquare(), EMAN::EMData::uncut_slice(), EMAN::Cmp::validate_input_args(), EMAN::Util::vrdg(), EMAN::EMData::window_center(), and EMAN::EMData::write_image().

#define ImageReadException (   filename,
  desc 
)    _ImageReadException(filename, __FILE__, __LINE__, desc)
#define ImageWriteException (   imagename,
  desc 
)    _ImageWriteException(imagename, __FILE__, __LINE__, desc)
#define InvalidCallException (   desc)    _InvalidCallException(__FILE__, __LINE__, desc)
#define InvalidParameterException (   desc)    _InvalidParameterException(__FILE__, __LINE__, desc)

Definition at line 369 of file exception.h.

Referenced by EMAN::Refine3DAlignerGrid::align(), EMAN::RTFSlowExhaustiveAligner::align(), EMAN::RTFExhaustiveAligner::align(), EMAN::RotateTranslateFlipAlignerPawel::align(), EMAN::RotateTranslateAlignerPawel::align(), EMAN::RotationalAligner::align(), EMAN::RotationalAligner::align_180_ambiguous(), EMAN::IntTranslateProcessor::assert_valid_aspect(), EMAN::TransformProcessor::assert_valid_aspect(), EMAN::EMData::calc_radial_dist(), EMAN::SetSFProcessor::create_radial_func(), EMAN::Transform::detect_problem_keys(), EMAN::OptimumOrientationGenerator::gen_orientations(), EMAN::SaffOrientationGenerator::gen_orientations(), EMAN::EvenOrientationGenerator::gen_orientations(), EMAN::RandomOrientationGenerator::gen_orientations(), EMAN::EmanOrientationGenerator::gen_orientations(), EMAN::Factory< T >::get(), EMAN::XYData::get_yatx_smooth(), wustl_mm::SkeletonMaker::VolumeData::GetOrigin(), wustl_mm::SkeletonMaker::VolumeData::GetSize(), wustl_mm::SkeletonMaker::VolumeData::GetSpacing(), EMAN::FactoryBase::insert_params(), EMAN::ConvolutionKernelProcessor::process(), EMAN::ScaleTransformProcessor::process(), EMAN::DirectionalSumProcessor::process(), EMAN::BinaryOperateProcessor< Type >::process_inplace(), EMAN::TomoTiltEdgeMaskProcessor::process_inplace(), EMAN::ConvolutionProcessor::process_inplace(), EMAN::HistogramBin::process_inplace(), EMAN::ClampingProcessor::process_inplace(), EMAN::ScaleTransformProcessor::process_inplace(), EMAN::TestImageSinewave::process_inplace(), EMAN::TestImageSphericalWave::process_inplace(), EMAN::TestImageGradient::process_inplace(), EMAN::TestImageFourierNoiseProfile::process_inplace(), EMAN::CTFSNRWeightProcessor::process_inplace(), EMAN::NormalizeByMassProcessor::process_inplace(), EMAN::FlattenBackgroundProcessor::process_inplace(), EMAN::Transform::set_matrix(), EMAN::Transform::set_params(), EMAN::Transform::set_params_inverse(), EMAN::Transform::set_rotation(), EMAN::XYData::set_state(), EMAN::XYData::set_xy_list(), EMAN::RT3DSphereAligner::xform_align_nbest(), and EMAN::RT3DGridAligner::xform_align_nbest().

#define InvalidStringException (   str,
  desc 
)    _InvalidStringException(str, __FILE__, __LINE__, desc)
#define InvalidValueException (   val,
  desc 
)    _InvalidValueException(val, __FILE__, __LINE__, desc)

Definition at line 293 of file exception.h.

Referenced by EMAN::OrientationGenerator::add_orientation(), EMAN::UnevenMatrix::alloc_data(), EMAN::BoxingTools::auto_correlation_pick(), EMAN::QuadMinDotCmp::cmp(), EMAN::EMAN2Ctf::compute_1d(), EMAN::EMData::div(), EMAN::fourierproduct(), EMAN::EMAN2Ctf::from_string(), EMAN::EMAN1Ctf::from_string(), EMAN::EMData::get_amplitude_thres(), EMAN::HSym::get_delimiters(), EMAN::DSym::get_delimiters(), EMAN::CSym::get_delimiters(), EMAN::DSym::get_sym(), EMAN::CSym::get_sym(), EMAN::UnevenMatrix::get_xsize(), EMAN::EMData::getconvpt2d_kbi0(), EMAN::EMData::helicise(), EMAN::EMData::helicise_grid(), EMAN::EMData::log(), EMAN::EMData::log10(), EMAN::EMData::power(), EMAN::WatershedProcessor::process(), EMAN::BooleanShrinkProcessor::process(), EMAN::MeanShrinkProcessor::process(), EMAN::FFTResampleProcessor::process(), EMAN::MedianShrinkProcessor::process(), EMAN::ApplySymProcessor::process(), EMAN::TestImageCylinder::process_inplace(), EMAN::TestImageCirclesphere::process_inplace(), EMAN::TestImageSquarecube::process_inplace(), EMAN::TestImageSinewaveCircular::process_inplace(), EMAN::TestImageGaussian::process_inplace(), EMAN::BooleanShrinkProcessor::process_inplace(), EMAN::MeanShrinkProcessor::process_inplace(), EMAN::FFTResampleProcessor::process_inplace(), EMAN::MedianShrinkProcessor::process_inplace(), EMAN::EMData::read_images_ext(), EMAN::Transform::set_scale(), EMAN::EMData::set_size(), EMAN::FourierReconstructorSimple2D::setup(), and EMAN::EMData::sqrt().

#define NotExistingObjectException (   objname,
  desc 
)    _NotExistingObjectException(objname, __FILE__, __LINE__, desc)
#define NullPointerException (   desc)    _NullPointerException(__FILE__, __LINE__, desc)

Definition at line 249 of file exception.h.

Referenced by EMAN::GatanDM4::TagTable::add_data(), EMAN::Gatan::TagTable::add_data(), EMAN::Util::add_img(), EMAN::Util::add_img2(), EMAN::Util::add_img_abs(), EMAN::EMData::add_incoherent(), EMAN::Util::addn_img(), EMAN::Refine3DAlignerQuaternion::align(), EMAN::Util::ap2ri(), EMAN::PawelProjector::backproject3d(), EMAN::ChaoProjector::backproject3d(), EMAN::EMData::calc_ccfx(), EMAN::EMData::calc_fourier_shell_correlation(), EMAN::Util::calc_least_square_fit(), EMAN::MaskEdgeMeanProcessor::calc_locals(), EMAN::EMData::calc_mutual_correlation(), EMAN::Util::check_file_by_magic(), EMAN::ImageIO::check_read_access(), EMAN::ImageIO::check_write_access(), EMAN::EMData::common_lines(), EMAN::EMData::common_lines_real(), EMAN::EMData::convolute(), EMAN::EMData::cut_slice(), EMAN::Util::decimate(), EMAN::BackProjectionReconstructor::determine_slice_agreement(), EMAN::WienerFourierReconstructor::determine_slice_agreement(), EMAN::FourierReconstructor::determine_slice_agreement(), EMAN::Util::div_filter(), EMAN::Util::div_img(), EMAN::Util::divn_filter(), EMAN::Util::divn_img(), EMAN::EMData::dot(), EMAN::Util::file_lock_wait(), EMAN::Util::find_max(), EMAN::Util::find_min_and_max(), EMAN::Util::flip_complex_phase(), EMAN::Util::flip_image(), EMAN::Util::get_line_from_string(), EMAN::Util::get_str_float(), EMAN::Util::get_str_int(), EMAN::SVDAnalyzer::insert_image(), EMAN::varimax::insert_image(), EMAN::PCAlarge::insert_image(), EMAN::PCAsmall::insert_image(), EMAN::WienerFourierReconstructor::insert_slice(), EMAN::FourierReconstructor::insert_slice(), EMAN::FourierReconstructorSimple2D::insert_slice(), EMAN::EMUtil::is_same_ctf(), EMAN::Util::mad_scalar(), EMAN::Util::madn_scalar(), EMAN::Util::move_points(), EMAN::Util::mul_img(), EMAN::Util::mul_scalar(), EMAN::Util::muln_img(), EMAN::Averager::mult(), EMAN::Util::mult_scalar(), EMAN::ReconstructorVolumeData::normalize_threed(), EMAN::Util::pack_complex_to_real(), EMAN::Util::pad(), EMAN::BooleanShrinkProcessor::process(), EMAN::Wiener2DAutoAreaProcessor::process(), EMAN::PhaseToCenterProcessor::process_inplace(), EMAN::PhaseToCornerProcessor::process_inplace(), EMAN::BooleanShrinkProcessor::process_inplace(), EMAN::ChaoProjector::project3d(), EMAN::FourierGriddingProjector::project3d(), EMAN::MaxValProjector::project3d(), EMAN::StandardProjector::project3d(), EMAN::GaussFFTProjector::project3d(), EMAN::Util::save_data(), EMAN::EMData::scale_factors(), EMAN::Util::set_freq(), EMAN::Util::square_img(), EMAN::Util::squaren_img(), EMAN::Util::sstrncmp(), EMAN::Util::sub_img(), EMAN::Util::subn_img(), EMAN::EMData::uncut_slice(), EMAN::Cmp::validate_input_args(), EMAN::EMUtil::vertical_acf(), and EMAN::Util::window().

#define OutofRangeException (   low,
  high,
  input,
  objname 
)    _OutofRangeException(low, high, input, __FILE__, __LINE__, objname)
#define TypeException (   desc,
  type 
)    _TypeException(desc, type, __FILE__, __LINE__)
#define UnexpectedBehaviorException (   desc)    _UnexpectedBehaviorException(__FILE__, __LINE__, desc)