|
blocxx
|
Compilation exception. More...
#include <RegExException.hpp>
Additional Inherited Members | |
Static Public Attributes inherited from BLOCXX_NAMESPACE::Exception | |
| static const int | UNKNOWN_SUBCLASS_ID = -1 |
| static const int | UNKNOWN_ERROR_CODE = -1 |
Protected Member Functions inherited from BLOCXX_NAMESPACE::Exception | |
| Exception (const char *file, int line, const char *msg) BLOCXX_DEPRECATED | |
| This constructor is deprecated. | |
| Exception (const char *file, int line, const char *msg, int errorCode, const Exception *otherException=0, int subClassId=UNKNOWN_SUBCLASS_ID) | |
| Exception (int subClassId, const char *file, int line, const char *msg, int errorCode, const Exception *otherException=0) BLOCXX_DEPRECATED | |
| Exception (const Exception &e) | |
| Exception & | operator= (const Exception &rhs) |
| void | swap (Exception &x) |
| void | setSubClassId (int subClassId) |
| void | setErrorCode (int errorCode) |
Compilation exception.
The RegExCompileException is thrown on regex compilation failure, the try to execute a not compiled regex or if the compiled regex is not compatible to the operation, e.g. if a non-capturing regex (REG_NOSUB flag set) if used in a method that requires capturing.
Definition at line 52 of file RegExException.hpp.
| BLOCXX_NAMESPACE::RegExCompileException::RegExCompileException | ( | const char * | file, |
| int | line, | ||
| const char * | msg, | ||
| int | errorCode = ::BLOCXX_NAMESPACE::Exception::UNKNOWN_ERROR_CODE, | ||
| const Exception * | otherException = 0, | ||
| int | subClassId = ::BLOCXX_NAMESPACE::Exception::UNKNOWN_SUBCLASS_ID ) |
Definition at line 40 of file RegExException.cpp.
|
virtual | ||||||||||||
Definition at line 40 of file RegExException.cpp.
|
virtual |
Make a copy of this exception object.
If allocation fails, return 0. Subclasses need to override this function. This function must not throw. Here is an example of how to implement this in a derived class:
virtual DerivedException* clone() const { return new(std::nothrow) DerivedException(*this); }
Reimplemented from BLOCXX_NAMESPACE::Exception.
Definition at line 40 of file RegExException.cpp.
|
virtual |
Re-throws the exception.
All derived classes should override this which makes it possible to catch a base class Exception and still re-thrown the derived class.
Reimplemented from BLOCXX_NAMESPACE::Exception.
Definition at line 40 of file RegExException.cpp.
Returns a string representing the concrete type.
e.g. "SocketException". Will not return 0. This function will not throw. Derived class implementations must not throw.
Reimplemented from BLOCXX_NAMESPACE::Exception.
Definition at line 40 of file RegExException.cpp.