ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::DataObjectError Class Reference

#include <itkDataObject.h>

+ Inheritance diagram for itk::DataObjectError:
+ Collaboration diagram for itk::DataObjectError:

Detailed Description

Exception object for DataObject exceptions.

Definition at line 49 of file itkDataObject.h.

Public Member Functions

 DataObjectError () noexcept
 
 DataObjectError (const char *file, unsigned int lineNumber)
 
 DataObjectError (const std::string &file, unsigned int lineNumber)
 
 DataObjectError (const DataObjectError &orig) noexcept
 
DataObjectGetDataObject () noexcept
 
virtual const char * GetNameOfClass () const
 
DataObjectErroroperator= (const DataObjectError &orig) noexcept
 
void SetDataObject (DataObject *dobj) noexcept
 
 ~DataObjectError () noexceptoverride=default
 
- 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
 
ExceptionObjectoperator= (const ExceptionObject &orig) noexcept
 
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)
 
const char * what () const noexceptoverride
 
 ~ExceptionObject () noexceptoverride
 
 ExceptionObject () noexcept
 
 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) noexcept
 

Protected Member Functions

virtual void PrintSelf (std::ostream &os, Indent indent) const
 

Private Attributes

DataObjectm_DataObject {nullptr}
 

Additional Inherited Members

- Public Types inherited from itk::ExceptionObject
using Superclass = std::exception
 

Constructor & Destructor Documentation

itk::DataObjectError::DataObjectError ( )
noexcept

Default constructor. Needed to ensure the exception object can be copied.

itk::DataObjectError::~DataObjectError ( )
overridedefaultnoexcept

Destructor. Need to specify empty throw() to avoid warnings.

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)
noexcept

Copy constructor. Needed to ensure the exception object can be copied.

Member Function Documentation

DataObject* itk::DataObjectError::GetDataObject ( )
noexcept

Get the data object that is throwing this exception.

virtual const char* itk::DataObjectError::GetNameOfClass ( ) const
virtual

Standard type macro

Reimplemented from itk::ExceptionObject.

Reimplemented in itk::InvalidRequestedRegionError.

DataObjectError& itk::DataObjectError::operator= ( const DataObjectError orig)
noexcept

Operator=. Needed to ensure the exception object can be copied.

virtual void itk::DataObjectError::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
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)
noexcept

Set the data object that is throwing this exception.

Member Data Documentation

DataObject* itk::DataObjectError::m_DataObject {nullptr}
private

Definition at line 88 of file itkDataObject.h.


The documentation for this class was generated from the following file: