#include <itkDataObject.h>
Exception object for DataObject exceptions.
Definition at line 51 of file itkDataObject.h.
Public Member Functions | |
DataObjectError () noexcept | |
DataObjectError (const char *file, unsigned int lineNumber) | |
DataObjectError (const DataObjectError &orig) noexcept | |
DataObjectError (const std::string &file, unsigned int lineNumber) | |
const char * | GetNameOfClass () const override |
DataObjectError & | operator= (const DataObjectError &orig) noexcept |
void | SetDataObject (DataObject *dobj) noexcept |
~DataObjectError () noexcept override=default | |
const DataObject * | GetDataObject () const noexcept |
![]() | |
ExceptionObject () noexcept=default | |
ExceptionObject (const char *file, unsigned int lineNumber=0, const char *desc="None", const char *loc="Unknown") | |
ExceptionObject (const ExceptionObject &) noexcept=default | |
ExceptionObject (ExceptionObject &&) noexcept=default | |
ExceptionObject (std::string file, unsigned int lineNumber=0, std::string desc="None", std::string loc="Unknown") | |
virtual const char * | GetDescription () const |
virtual const char * | GetFile () const |
virtual unsigned int | GetLine () const |
virtual const char * | GetLocation () const |
ExceptionObject & | operator= (const ExceptionObject &) noexcept=default |
ExceptionObject & | operator= (ExceptionObject &&) noexcept=default |
virtual bool | operator== (const ExceptionObject &orig) const |
virtual void | Print (std::ostream &os) const |
virtual void | SetDescription (const char *s) |
virtual void | SetDescription (const std::string &s) |
virtual void | SetLocation (const char *s) |
virtual void | SetLocation (const std::string &s) |
const char * | what () const noexcept override |
~ExceptionObject () override | |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Private Attributes | |
DataObject * | m_DataObject { nullptr } |
Additional Inherited Members | |
![]() | |
using | Superclass = std::exception |
![]() | |
static constexpr const char *const | default_exception_message = "Generic ExceptionObject" |
|
noexcept |
Default constructor. Needed to ensure the exception object can be copied.
Referenced by DataObjectError(), DataObjectError(), DataObjectError(), GetNameOfClass(), operator=(), and ~DataObjectError().
|
overridedefaultnoexcept |
Destructor. Need to specify empty throw() to avoid warnings.
References DataObjectError().
itk::DataObjectError::DataObjectError | ( | const char * | file, |
unsigned int | lineNumber ) |
Constructor. Needed to ensure the exception object can be copied.
References DataObjectError().
itk::DataObjectError::DataObjectError | ( | const std::string & | file, |
unsigned int | lineNumber ) |
Constructor. Needed to ensure the exception object can be copied.
References DataObjectError().
|
noexcept |
Copy constructor. Needed to ensure the exception object can be copied.
References DataObjectError().
|
noexcept |
Get the data object that is throwing this exception.
References GetDataObject().
Referenced by GetDataObject().
|
overridevirtual |
Reimplemented from itk::ExceptionObject.
Reimplemented in itk::InvalidRequestedRegionError.
References DataObjectError().
|
noexcept |
Operator=. Needed to ensure the exception object can be copied.
References DataObjectError().
|
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.
|
noexcept |
Set the data object that is throwing this exception.
References SetDataObject().
Referenced by SetDataObject().
|
private |
Definition at line 101 of file itkDataObject.h.