Invalid formation exception.
More...
#include <base/string/InvalidFormat.h>
Inherits Exception.
Inherited by UriException, and Url::UrlException.
Invalid formation exception.
Invalid format exception is raised when a string does not comply with a given format.
- Version
- 1.0
- Examples
- testsuite/echod.cpp, testsuite/ftp.cpp, testsuite/http.cpp, testsuite/IEEE1394.cpp, testsuite/ping.cpp, and testsuite/server.cpp.
◆ InvalidFormat() [1/4]
InvalidFormat::InvalidFormat |
( |
| ) |
|
|
noexcept |
Initializes the exception object with no message.
◆ InvalidFormat() [2/4]
InvalidFormat::InvalidFormat |
( |
const char * |
message | ) |
|
|
noexcept |
Initializes the exception object.
- Parameters
-
◆ InvalidFormat() [3/4]
InvalidFormat::InvalidFormat |
( |
const Type & |
type | ) |
|
|
noexcept |
Initializes the exception object without an associated message.
- Parameters
-
type | The identity of the type. |
◆ InvalidFormat() [4/4]
InvalidFormat::InvalidFormat |
( |
const char * |
message, |
|
|
const Type & |
type |
|
) |
| |
|
noexcept |
Initializes the exception object.
- Parameters
-
message | An NULL-terminated string (ASCII). |
type | The identity of the type. |
◆ isCommonException()
bool InvalidFormat::isCommonException |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Returns true if exception is generally an externally triggered exception that can be suppressed and handled directly. Internal exceptions like NullPointer should not be handled which is the default behavior. E.g. out of resource, EOF, parsing issues, and similar.
Reimplemented from Exception.