PCL
|
A simple exception with an associated error message. More...
#include <Exception.h>
Public Member Functions | |
Error ()=default | |
Error (const Error &)=default | |
Error (const String &message, bool unformatted=false) | |
String | Caption () const override |
String | Message () const override |
bool | ShowUnformatted () const override |
![]() | |
Exception ()=default | |
Exception (const pcl::Exception &)=default | |
virtual | ~Exception () |
virtual String | ExceptionClass () const |
virtual String | FormatInfo () const |
virtual void | Show () const |
PCL_FORCE_INLINE void | ShowOnConsole () const |
Additional Inherited Members | |
![]() | |
static void | DisableConsoleOutput (bool disable=true) |
static void | DisableGUIOutput (bool disable=true) |
static void | EnableConsoleOutput (bool=true) |
static void | EnableGUIOutput (bool=true) |
static bool | IsConsoleOutputEnabled () |
static bool | IsGUIOutputEnabled () |
Error is a general exception message very frequently used by PCL classes and functions.
Definition at line 255 of file Exception.h.
|
default |
Constructs an Error object with an empty error message.
|
default |
Copy constructor.
|
inline |
Constructs an Error object.
message | The error message that will be shown for this exception. See the Message() member function for more information. |
unformatted | If true, the specified message will be shown verbatim on the console (when console output is enabled) without inserting any prefixes and captions. This parameter is false by default. |
Definition at line 280 of file Exception.h.
|
inlineoverridevirtual |
Returns a caption text suitable to represent the information in this Exception object.
Reimplemented from pcl::Exception.
Reimplemented in pcl::FatalError.
Definition at line 300 of file Exception.h.
|
inlineoverridevirtual |
Returns descriptive information for this Error object. The default implementation returns the message specified upon construction. A derived class can reimplement this function to provide additional information items such as file names, object identifiers, source code positions, date and time representations, etc.
Reimplemented from pcl::Exception.
Reimplemented in pcl::File::Error, pcl::SourceCodeError, and pcl::ParseError.
Definition at line 293 of file Exception.h.
|
inlineoverridevirtual |
Returns true if the exception information must be represented verbatim on the console (when console output is enabled) without inserting any prefixes, captions, and indicators.
Derived classes can reimplement this function to prevent duplicate decorations on the console when the exception information already includes all the necessary formatting elements. For example, this happens with exceptions generated within running threads, which are already represented as formatted console text that can be retrieved using Thread::ConsoleOutputText() to write it to the Process Console interface.
Reimplemented from pcl::Exception.
Definition at line 307 of file Exception.h.