ITK  5.4.0
Insight Toolkit
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::DataObjectError Class Reference

#include <itkDataObject.h>

Detailed Description

Exception object for DataObject exceptions.

Definition at line 51 of file itkDataObject.h.

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

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)
 
 itkOverrideGetNameOfClassMacro (DataObjectError)
 
DataObjectErroroperator= (const DataObjectError &orig) noexcept
 
void SetDataObject (DataObject *dobj) noexcept
 
 ~DataObjectError () noexcept override=default
 
const DataObjectGetDataObject () const noexcept
 

Protected Member Functions

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

Private Attributes

DataObjectm_DataObject { nullptr }
 

Constructor & Destructor Documentation

◆ DataObjectError() [1/4]

itk::DataObjectError::DataObjectError ( )
noexcept

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

◆ ~DataObjectError()

itk::DataObjectError::~DataObjectError ( )
overridedefaultnoexcept

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

◆ DataObjectError() [2/4]

itk::DataObjectError::DataObjectError ( const char *  file,
unsigned int  lineNumber 
)

Constructor. Needed to ensure the exception object can be copied.

◆ DataObjectError() [3/4]

itk::DataObjectError::DataObjectError ( const std::string &  file,
unsigned int  lineNumber 
)

Constructor. Needed to ensure the exception object can be copied.

◆ DataObjectError() [4/4]

itk::DataObjectError::DataObjectError ( const DataObjectError orig)
noexcept

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

Member Function Documentation

◆ GetDataObject()

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

Get the data object that is throwing this exception.

◆ itkOverrideGetNameOfClassMacro()

itk::DataObjectError::itkOverrideGetNameOfClassMacro ( DataObjectError  )

Standard type macro

◆ operator=()

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

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

◆ PrintSelf()

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.

◆ SetDataObject()

void itk::DataObjectError::SetDataObject ( DataObject dobj)
noexcept

Set the data object that is throwing this exception.

Member Data Documentation

◆ m_DataObject

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

Definition at line 101 of file itkDataObject.h.


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