activemq-cpp-3.6.0
|
#include <src/main/decaf/net/URISyntaxException.h>
Public Member Functions | |
URISyntaxException () | |
Default Constructor. | |
URISyntaxException (const Exception &ex) | |
Conversion Constructor from some other Exception. | |
URISyntaxException (const URISyntaxException &ex) | |
Copy Constructor. | |
URISyntaxException (const char *file, const int lineNumber, const std::exception *cause, const char *msg,...) | |
Constructor - Initializes the file name and line number where this message occurred. | |
URISyntaxException (const std::exception *cause) | |
Constructor. | |
URISyntaxException (const char *file, const int lineNumber, const char *msg) | |
Constructor - Initializes the file name and line number where this message occurred. | |
URISyntaxException (const char *file, const int lineNumber, const std::string &input, const std::string &reason) | |
Constructor - Initializes the file name and line number where this message occurred. | |
URISyntaxException (const char *file, const int lineNumber, const std::string &input, const std::string &reason, int index) | |
Constructor - Initializes the file name and line number where this message occurred. | |
virtual URISyntaxException * | clone () const |
Clones this exception. | |
virtual | ~URISyntaxException () throw () |
std::string | getInput () const |
std::string | getReason () const |
int | getIndex () const |
Public Member Functions inherited from decaf::lang::Exception | |
Exception () | |
Default Constructor. | |
Exception (const Exception &ex) | |
Copy Constructor. | |
Exception (const std::exception *cause) | |
Constructor. | |
Exception (const char *file, const int lineNumber, const char *msg,...) | |
Constructor - Initializes the file name and line number where this message occurred. | |
Exception (const char *file, const int lineNumber, const std::exception *cause, const char *msg,...) | |
Constructor - Initializes the file name and line number where this message occurred. | |
virtual | ~Exception () throw () |
virtual std::string | getMessage () const |
Gets the message for this exception. | |
virtual const std::exception * | getCause () const |
Gets the exception that caused this one to be thrown, this allows for chaining of exceptions in the case of a method that throws only a particular exception but wishes to allow for the real causal exception to be passed only in case the caller knows about that type of exception and wishes to respond to it. | |
virtual void | initCause (const std::exception *cause) |
Initializes the contained cause exception with the one given. | |
virtual const char * | what () const throw () |
Implement method from std::exception. | |
virtual void | setMessage (const char *msg,...) |
Sets the cause for this exception. | |
virtual void | setMark (const char *file, const int lineNumber) |
Adds a file/line number to the stack trace. | |
virtual std::vector< std::pair < std::string, int > > | getStackTrace () const |
Provides the stack trace for every point where this exception was caught, marked, and rethrown. | |
virtual void | printStackTrace () const |
Prints the stack trace to std::err. | |
virtual void | printStackTrace (std::ostream &stream) const |
Prints the stack trace to the given output stream. | |
virtual std::string | getStackTraceString () const |
Gets the stack trace as one contiguous string. | |
Exception & | operator= (const Exception &ex) |
Assignment operator, copies one Exception to another. | |
Public Member Functions inherited from decaf::lang::Throwable | |
Throwable () | |
virtual | ~Throwable () throw () |
Additional Inherited Members | |
Protected Member Functions inherited from decaf::lang::Exception | |
virtual void | setStackTrace (const std::vector< std::pair< std::string, int > > &trace) |
virtual void | buildMessage (const char *format, va_list &vargs) |
Protected Attributes inherited from decaf::lang::Exception | |
ExceptionData * | data |
decaf::net::URISyntaxException::URISyntaxException | ( | ) |
Default Constructor.
Conversion Constructor from some other Exception.
ex | An exception that should become this type of Exception |
decaf::net::URISyntaxException::URISyntaxException | ( | const URISyntaxException & | ex | ) |
Copy Constructor.
ex | An exception that should become this type of Exception |
decaf::net::URISyntaxException::URISyntaxException | ( | const char * | file, |
const int | lineNumber, | ||
const std::exception * | cause, | ||
const char * | msg, | ||
... | |||
) |
Constructor - Initializes the file name and line number where this message occurred.
Sets the message to report, using an optional list of arguments to parse into the message
file | The file name where exception occurs |
lineNumber | The line number where the exception occurred. |
cause | The exception that was the cause for this one to be thrown. |
msg | The message to report |
... | list of primitives that are formatted into the message |
decaf::net::URISyntaxException::URISyntaxException | ( | const std::exception * | cause | ) |
Constructor.
cause | Pointer to the exception that caused this one to be thrown, the object is cloned caller retains ownership. |
decaf::net::URISyntaxException::URISyntaxException | ( | const char * | file, |
const int | lineNumber, | ||
const char * | msg | ||
) |
Constructor - Initializes the file name and line number where this message occurred.
Sets the message to report, using an optional list of arguments to parse into the message
file | The file name where exception occurs |
lineNumber | The line number where the exception occurred. |
msg | The message to report |
... | list of primitives that are formatted into the message |
decaf::net::URISyntaxException::URISyntaxException | ( | const char * | file, |
const int | lineNumber, | ||
const std::string & | input, | ||
const std::string & | reason | ||
) |
Constructor - Initializes the file name and line number where this message occurred.
Sets the input string that caused the error and the reason for the error.
file | The file name where exception occurs. |
lineNumber | The line number where the exception occurred. |
input | The URL that caused the exception. |
reason | The reason for the failure. |
decaf::net::URISyntaxException::URISyntaxException | ( | const char * | file, |
const int | lineNumber, | ||
const std::string & | input, | ||
const std::string & | reason, | ||
int | index | ||
) |
Constructor - Initializes the file name and line number where this message occurred.
Sets the input string that caused the error and the reason for the error.
|
virtual |
|
inlinevirtual |
Clones this exception.
This is useful for cases where you need to preserve the type of the original exception as well as the message. All subclasses should override.
Reimplemented from decaf::lang::Exception.
|
inline |
|
inline |
|
inline |