SQLException Class
(CDP2SQL::SQLException)Generic SQLException base class. More...
Header: | #include <SQLException> |
Public Functions
SQLException(const char *message = 0, int err = -1) | |
SQLException(const std::string &message, int err = -1) | |
~SQLException() override | |
virtual int | Error() const |
virtual std::string | GetFormattedMessage() const |
virtual const char * | Message() const |
Member Function Documentation
SQLException::SQLException(const char *message = 0, int err = -1)
Creates an SQLException object with a message and error code err.
Does not take ownership of, nor copy of, the given error message string.
SQLException::SQLException(const std::string &message, int err = -1)
Creates an SQLException object with a message and error code err.
Does not take ownership of, nor copy of, the given error message string.
SQLException::~SQLException()
Destroys the instance of SQLException.
[virtual]
int SQLException::Error() const
Returns error code if any.
[virtual]
std::string SQLException::GetFormattedMessage() const
Includes Message() and if set then also Error() *
[virtual]
const char *SQLException::Message() const
Returns the error message for this exception.
Can be overriden by subclasses to create more dynamic error messages.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.