18#ifndef itkExceptionObject_h
19#define itkExceptionObject_h
22#ifndef allow_inclusion_of_itkExceptionObject_h
23# error "Do not include itkExceptionObject.h directly, include itkMacro.h instead."
60 unsigned int lineNumber = 0,
61 std::
string description =
"None",
62 std::
string location = {});
127 what() const noexcept override;
221 this->
SetDescription(
"Filter execution was aborted by an external request");
226 :
ExceptionObject(
std::move(file), lineNumber,
"Filter execution was aborted by an external request")
234template <
typename TTarget,
typename TSource>
243 TTarget rval =
dynamic_cast<TTarget
>(x);
246 itkGenericExceptionMacro(
"Failed dynamic cast to " <<
typeid(TTarget).name()
247 <<
" object type = " << x->GetNameOfClass());
251 return static_cast<TTarget
>(x);
Standard exception handling object.
virtual const char * GetLocation() const
const char * what() const noexcept override
virtual void SetDescription(const std::string &s)
static constexpr const char *const default_exception_message
virtual void SetLocation(const std::string &s)
std::shared_ptr< const ExceptionData > m_ExceptionData
ExceptionObject() noexcept=default
std::exception Superclass
virtual const char * GetFile() const
virtual void Print(std::ostream &os) const
ExceptionObject(ExceptionObject &&) noexcept=default
virtual unsigned int GetLine() const
virtual const char * GetDescription() const
ExceptionObject(const ExceptionObject &) noexcept=default
ExceptionObject() noexcept=default
ExceptionObject() noexcept=default
ExceptionObject() noexcept=default
ProcessAborted(std::string file, unsigned int lineNumber)
ExceptionObject() noexcept=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TTarget itkDynamicCastInDebugMode(TSource x)