ITK  6.0.0
Insight Toolkit
Public Member Functions | List of all members
itk::DerefError Class Reference

#include <itkDeref.h>

Detailed Description

Exception thrown when trying to dereference a null pointer.

Definition at line 32 of file itkDeref.h.

+ Inheritance diagram for itk::DerefError:
+ Collaboration diagram for itk::DerefError:

Public Member Functions

 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")
 
const char * GetNameOfClass () const override
 
- Public Member Functions inherited from itk::ExceptionObject
 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
 
ExceptionObjectoperator= (const ExceptionObject &) noexcept=default
 
ExceptionObjectoperator= (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
 

Additional Inherited Members

- Public Types inherited from itk::ExceptionObject
using Superclass = std::exception
 
- Static Public Attributes inherited from itk::ExceptionObject
static constexpr const char *const default_exception_message = "Generic ExceptionObject"
 

Member Function Documentation

◆ ExceptionObject() [1/5]

itk::ExceptionObject::ExceptionObject
defaultnoexcept

Explicitly-defaulted default-constructor. Creates an empty exception object.

◆ ExceptionObject() [2/5]

itk::ExceptionObject::ExceptionObject
explicit

◆ ExceptionObject() [3/5]

itk::ExceptionObject::ExceptionObject
defaultnoexcept

Copy-constructor.

◆ ExceptionObject() [4/5]

itk::ExceptionObject::ExceptionObject
defaultnoexcept

Move-constructor.

◆ ExceptionObject() [5/5]

itk::ExceptionObject::ExceptionObject
explicit

◆ GetNameOfClass()

const char* itk::DerefError::GetNameOfClass ( ) const
overridevirtual

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