ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkDataObject.h>
Exception object for DataObject exceptions.
Definition at line 48 of file itkDataObject.h.
Public Member Functions | |
DataObjectError () | |
DataObjectError (const char *file, unsigned int lineNumber) | |
DataObjectError (const std::string &file, unsigned int lineNumber) | |
DataObjectError (const DataObjectError &orig) | |
DataObject * | GetDataObject () |
virtual const char * | GetNameOfClass () const |
DataObjectError & | operator= (const DataObjectError &orig) |
void | SetDataObject (DataObject *dobj) |
virtual | ~DataObjectError () noexceptoverride |
Public Member Functions inherited from itk::ExceptionObject | |
virtual const char * | GetDescription () const |
virtual const char * | GetFile () const |
virtual unsigned int | GetLine () const |
virtual const char * | GetLocation () const |
ExceptionObject & | operator= (const ExceptionObject &orig) |
virtual bool | operator== (const ExceptionObject &orig) |
virtual void | Print (std::ostream &os) const |
virtual void | SetDescription (const std::string &s) |
virtual void | SetDescription (const char *s) |
virtual void | SetLocation (const std::string &s) |
virtual void | SetLocation (const char *s) |
virtual const char * | what () const noexceptoverride |
virtual | ~ExceptionObject () noexceptoverride |
ExceptionObject () | |
ExceptionObject (const char *file, unsigned int lineNumber=0, const char *desc="None", const char *loc="Unknown") | |
ExceptionObject (const std::string &file, unsigned int lineNumber=0, const std::string &desc="None", const std::string &loc="Unknown") | |
ExceptionObject (const ExceptionObject &orig) | |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Private Attributes | |
DataObject * | m_DataObject |
Additional Inherited Members | |
Public Types inherited from itk::ExceptionObject | |
typedef std::exception | Superclass |
itk::DataObjectError::DataObjectError | ( | ) |
Default constructor. Needed to ensure the exception object can be copied.
|
inlineoverridevirtualnoexcept |
Destructor. Need to specify empty throw() to avoid warnings.
Definition at line 56 of file itkDataObject.h.
itk::DataObjectError::DataObjectError | ( | const char * | file, |
unsigned int | lineNumber | ||
) |
Constructor. Needed to ensure the exception object can be copied.
itk::DataObjectError::DataObjectError | ( | const std::string & | file, |
unsigned int | lineNumber | ||
) |
Constructor. Needed to ensure the exception object can be copied.
itk::DataObjectError::DataObjectError | ( | const DataObjectError & | orig | ) |
Copy constructor. Needed to ensure the exception object can be copied.
DataObject* itk::DataObjectError::GetDataObject | ( | ) |
Get the data object that is throwing this exception.
|
virtual |
Standard type macro
Reimplemented from itk::ExceptionObject.
Reimplemented in itk::InvalidRequestedRegionError.
DataObjectError& itk::DataObjectError::operator= | ( | const DataObjectError & | orig | ) |
Operator=. Needed to ensure the exception object can be copied.
|
protectedvirtual |
Print exception information. This method can be overridden by specific exception subtypes. The default is to print out the location where the exception was first thrown and any description provided by the "thrower".
Reimplemented in itk::InvalidRequestedRegionError.
void itk::DataObjectError::SetDataObject | ( | DataObject * | dobj | ) |
Set the data object that is throwing this exception.
|
private |
Definition at line 87 of file itkDataObject.h.