|
Ice 3.7 C++11 API Reference
|
Abstract base class for all Ice exceptions. More...
#include <Ice/Ice.h>


Public Member Functions | |
| Exception () | |
| Constructs the exception. More... | |
| Exception (const char *file, int line) | |
| Constructs the exception. More... | |
| std::unique_ptr< Exception > | ice_clone () const |
| Returns a shallow polymorphic copy of this exception. More... | |
| const char * | ice_file () const |
| Returns the name of the file where this exception was constructed. More... | |
| virtual std::string | ice_id () const =0 |
| Returns the type ID of this exception. More... | |
| int | ice_line () const |
| Returns the line number where this exception was constructed. More... | |
| virtual void | ice_print (std::ostream &os) const |
| Outputs a description of this exception to a stream. More... | |
| std::string | ice_stackTrace () const |
| Returns the stack trace at the point this exception was constructed. More... | |
| virtual void | ice_throw () const =0 |
| Throws this exception. More... | |
| virtual const char * | what () const throw () |
| Returns a description of this exception. More... | |
| virtual | ~Exception ()=0 throw () |
Abstract base class for all Ice exceptions.
Use the Ice::Exception alias instead of IceUtil::Exception.
| IceUtil::Exception::Exception | ( | ) |
Constructs the exception.
Equivalent to Exception(nullptr, 0).
| IceUtil::Exception::Exception | ( | const char * | file, |
| int | line | ||
| ) |
Constructs the exception.
| file | The file where this exception is constructed. |
| line | The line where this exception is constructed. |
|
pure virtual | |||||||||||||
| std::unique_ptr<Exception> IceUtil::Exception::ice_clone | ( | ) | const |
Returns a shallow polymorphic copy of this exception.
| const char* IceUtil::Exception::ice_file | ( | ) | const |
Returns the name of the file where this exception was constructed.
|
pure virtual |
Returns the type ID of this exception.
This corresponds to the Slice type ID for Slice-defined exceptions, and to a similar fully scoped name for other exceptions. For example "::IceUtil::SyscallException".
Implemented in IceUtil::InvalidTimeoutException, IceUtil::BadThreadControlException, IceUtil::ThreadNotStartedException, IceUtil::ThreadStartedException, IceUtil::ThreadLockedException, IceUtil::ThreadSyscallException, IceUtil::OptionalNotSetException, IceUtil::FileLockException, IceUtil::SyscallException, IceUtil::IllegalConversionException, IceUtil::IllegalArgumentException, IceUtil::NullHandleException, IceUtil::CtrlCHandlerException, IceSSL::ParseException, IceSSL::CertificateEncodingException, IceSSL::CertificateReadException, Ice::IconvInitializationException, and Glacier2::RestartSessionException.
| int IceUtil::Exception::ice_line | ( | ) | const |
Returns the line number where this exception was constructed.
|
virtual |
Outputs a description of this exception to a stream.
| os | The output stream. |
Reimplemented in Ice::IconvInitializationException, IceUtil::InvalidTimeoutException, IceUtil::FileLockException, IceUtil::SyscallException, IceUtil::IllegalConversionException, and IceUtil::IllegalArgumentException.
| std::string IceUtil::Exception::ice_stackTrace | ( | ) | const |
Returns the stack trace at the point this exception was constructed.
|
pure virtual |
Throws this exception.
Implemented in IceUtil::ExceptionHelper< E, B >.
|
virtual | |||||||||||||
Returns a description of this exception.