Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
IceUtil::Exception Class Referenceabstract

Abstract base class for all Ice exceptions. More...

#include <Ice/Ice.h>

Inheritance diagram for IceUtil::Exception:
Collaboration diagram for IceUtil::Exception:

Public Member Functions

 Exception ()
 Constructs the exception.
 Exception (const char *file, int line)
 Constructs the exception.
virtual Exceptionice_clone () const =0
 Returns a shallow polymorphic copy of this exception.
const char * ice_file () const
 Returns the name of the file where this exception was constructed.
virtual std::string ice_id () const =0
 Returns the type ID of this exception.
int ice_line () const
 Returns the line number where this exception was constructed.
std::string ice_name () const
virtual void ice_print (std::ostream &os) const
 Outputs a description of this exception to a stream.
std::string ice_stackTrace () const
 Returns the stack trace at the point this exception was constructed.
virtual void ice_throw () const =0
 Throws this exception.
virtual const char * what () const throw ()
 Returns a description of this exception.
virtual ~Exception () throw () =0

Detailed Description

Abstract base class for all Ice exceptions.

Use the Ice::Exception alias instead of IceUtil::Exception.

Constructor & Destructor Documentation

◆ Exception() [1/2]

IceUtil::Exception::Exception ( )

Constructs the exception.

Equivalent to Exception(nullptr, 0).

◆ Exception() [2/2]

IceUtil::Exception::Exception ( const char * file,
int line )

Constructs the exception.

Parameters
fileThe file where this exception is constructed.
lineThe line where this exception is constructed.

◆ ~Exception()

virtual IceUtil::Exception::~Exception ( )
throw ( )
pure virtual

Member Function Documentation

◆ ice_clone()

virtual Exception * IceUtil::Exception::ice_clone ( ) const
pure virtual

Returns a shallow polymorphic copy of this exception.

Returns
A pointer to the new shallow copy. The caller owns the returned object.

Implemented in Glacier2::CannotCreateSessionException, Glacier2::PermissionDeniedException, Glacier2::RestartSessionException, Glacier2::SessionNotExistException, Ice::AdapterAlreadyActiveException, Ice::AdapterNotFoundException, Ice::AlreadyRegisteredException, Ice::BadMagicException, Ice::CFNetworkException, Ice::CloneNotImplementedException, Ice::CloseConnectionException, Ice::CloseTimeoutException, Ice::CollocationOptimizationException, Ice::CommunicatorDestroyedException, Ice::CompressionException, Ice::ConnectFailedException, Ice::ConnectionLostException, Ice::ConnectionManuallyClosedException, Ice::ConnectionNotValidatedException, Ice::ConnectionRefusedException, Ice::ConnectionTimeoutException, Ice::ConnectTimeoutException, Ice::DatagramLimitException, Ice::DNSException, Ice::EncapsulationException, Ice::EndpointParseException, Ice::EndpointSelectionTypeParseException, Ice::FacetNotExistException, Ice::FeatureNotSupportedException, Ice::FileException, Ice::FixedProxyException, Ice::IconvInitializationException, Ice::IdentityParseException, Ice::IllegalIdentityException, Ice::IllegalMessageSizeException, Ice::IllegalServantException, Ice::InitializationException, Ice::InvalidReplicaGroupIdException, Ice::InvocationCanceledException, Ice::InvocationTimeoutException, Ice::LocalException, Ice::MarshalException, Ice::MemoryLimitException, Ice::NoEndpointException, Ice::NotRegisteredException, Ice::NoValueFactoryException, Ice::ObjectAdapterDeactivatedException, Ice::ObjectAdapterIdInUseException, Ice::ObjectNotExistException, Ice::ObjectNotFoundException, Ice::OperationInterruptedException, Ice::OperationNotExistException, Ice::PluginInitializationException, Ice::ProtocolException, Ice::ProxyParseException, Ice::ProxyUnmarshalException, Ice::RemoteLoggerAlreadyAttachedException, Ice::RequestFailedException, Ice::ResponseSentException, Ice::SecurityException, Ice::ServerNotFoundException, Ice::SocketException, Ice::StringConversionException, Ice::SyscallException, Ice::SystemException, Ice::TimeoutException, Ice::TwowayOnlyException, Ice::UnexpectedObjectException, Ice::UnknownException, Ice::UnknownLocalException, Ice::UnknownMessageException, Ice::UnknownReplyStatusException, Ice::UnknownRequestIdException, Ice::UnknownUserException, Ice::UnmarshalOutOfBoundsException, Ice::UnsupportedEncodingException, Ice::UnsupportedProtocolException, Ice::UserException, Ice::VersionMismatchException, Ice::VersionParseException, IceBox::AlreadyStartedException, IceBox::AlreadyStoppedException, IceBox::FailureException, IceBox::NoSuchServiceException, IceGrid::AccessDeniedException, IceGrid::AdapterNotExistException, IceGrid::AllocationException, IceGrid::AllocationTimeoutException, IceGrid::ApplicationNotExistException, IceGrid::BadSignalException, IceGrid::DeploymentException, IceGrid::FileNotAvailableException, IceGrid::NodeNotExistException, IceGrid::NodeUnreachableException, IceGrid::ObjectExistsException, IceGrid::ObjectNotRegisteredException, IceGrid::ObserverAlreadyRegisteredException, IceGrid::ParseException, IceGrid::PatchException, IceGrid::PermissionDeniedException, IceGrid::RegistryNotExistException, IceGrid::RegistryUnreachableException, IceGrid::ServerNotExistException, IceGrid::ServerStartException, IceGrid::ServerStopException, IceGrid::ServerUnreachableException, IceGrid::UserAccountNotFoundException, IceMX::UnknownMetricsView, IceSSL::CertificateEncodingException, IceSSL::CertificateReadException, IceSSL::ParseException, IceStorm::AlreadySubscribed, IceStorm::BadQoS, IceStorm::InvalidSubscriber, IceStorm::LinkExists, IceStorm::NoSuchLink, IceStorm::NoSuchTopic, IceStorm::TopicExists, IceUtil::BadThreadControlException, IceUtil::CtrlCHandlerException, IceUtil::FileLockException, IceUtil::IllegalArgumentException, IceUtil::IllegalConversionException, IceUtil::InvalidTimeoutException, IceUtil::NullHandleException, IceUtil::OptionalNotSetException, IceUtil::SyscallException, IceUtil::ThreadLockedException, IceUtil::ThreadNotStartedException, IceUtil::ThreadStartedException, and IceUtil::ThreadSyscallException.

◆ ice_file()

const char * IceUtil::Exception::ice_file ( ) const

Returns the name of the file where this exception was constructed.

Returns
The file name.

◆ ice_id()

virtual std::string IceUtil::Exception::ice_id ( ) const
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".

Returns
The type ID of this exception

Implemented in Glacier2::CannotCreateSessionException, Glacier2::PermissionDeniedException, Glacier2::RestartSessionException, Glacier2::SessionNotExistException, Ice::AdapterAlreadyActiveException, Ice::AdapterNotFoundException, Ice::AlreadyRegisteredException, Ice::BadMagicException, Ice::CFNetworkException, Ice::CloneNotImplementedException, Ice::CloseConnectionException, Ice::CloseTimeoutException, Ice::CollocationOptimizationException, Ice::CommunicatorDestroyedException, Ice::CompressionException, Ice::ConnectFailedException, Ice::ConnectionLostException, Ice::ConnectionManuallyClosedException, Ice::ConnectionNotValidatedException, Ice::ConnectionRefusedException, Ice::ConnectionTimeoutException, Ice::ConnectTimeoutException, Ice::DatagramLimitException, Ice::DNSException, Ice::EncapsulationException, Ice::EndpointParseException, Ice::EndpointSelectionTypeParseException, Ice::FacetNotExistException, Ice::FeatureNotSupportedException, Ice::FileException, Ice::FixedProxyException, Ice::IconvInitializationException, Ice::IdentityParseException, Ice::IllegalIdentityException, Ice::IllegalMessageSizeException, Ice::IllegalServantException, Ice::InitializationException, Ice::InvalidReplicaGroupIdException, Ice::InvocationCanceledException, Ice::InvocationTimeoutException, Ice::MarshalException, Ice::MemoryLimitException, Ice::NoEndpointException, Ice::NotRegisteredException, Ice::NoValueFactoryException, Ice::ObjectAdapterDeactivatedException, Ice::ObjectAdapterIdInUseException, Ice::ObjectNotExistException, Ice::ObjectNotFoundException, Ice::OperationInterruptedException, Ice::OperationNotExistException, Ice::PluginInitializationException, Ice::ProtocolException, Ice::ProxyParseException, Ice::ProxyUnmarshalException, Ice::RemoteLoggerAlreadyAttachedException, Ice::RequestFailedException, Ice::ResponseSentException, Ice::SecurityException, Ice::ServerNotFoundException, Ice::SocketException, Ice::StringConversionException, Ice::SyscallException, Ice::TimeoutException, Ice::TwowayOnlyException, Ice::UnexpectedObjectException, Ice::UnknownException, Ice::UnknownLocalException, Ice::UnknownMessageException, Ice::UnknownReplyStatusException, Ice::UnknownRequestIdException, Ice::UnknownUserException, Ice::UnmarshalOutOfBoundsException, Ice::UnsupportedEncodingException, Ice::UnsupportedProtocolException, Ice::VersionMismatchException, Ice::VersionParseException, IceBox::AlreadyStartedException, IceBox::AlreadyStoppedException, IceBox::FailureException, IceBox::NoSuchServiceException, IceGrid::AccessDeniedException, IceGrid::AdapterNotExistException, IceGrid::AllocationException, IceGrid::AllocationTimeoutException, IceGrid::ApplicationNotExistException, IceGrid::BadSignalException, IceGrid::DeploymentException, IceGrid::FileNotAvailableException, IceGrid::NodeNotExistException, IceGrid::NodeUnreachableException, IceGrid::ObjectExistsException, IceGrid::ObjectNotRegisteredException, IceGrid::ObserverAlreadyRegisteredException, IceGrid::ParseException, IceGrid::PatchException, IceGrid::PermissionDeniedException, IceGrid::RegistryNotExistException, IceGrid::RegistryUnreachableException, IceGrid::ServerNotExistException, IceGrid::ServerStartException, IceGrid::ServerStopException, IceGrid::ServerUnreachableException, IceGrid::UserAccountNotFoundException, IceMX::UnknownMetricsView, IceSSL::CertificateEncodingException, IceSSL::CertificateReadException, IceSSL::ParseException, IceStorm::AlreadySubscribed, IceStorm::BadQoS, IceStorm::InvalidSubscriber, IceStorm::LinkExists, IceStorm::NoSuchLink, IceStorm::NoSuchTopic, IceStorm::TopicExists, IceUtil::BadThreadControlException, IceUtil::CtrlCHandlerException, IceUtil::FileLockException, IceUtil::IllegalArgumentException, IceUtil::IllegalConversionException, IceUtil::InvalidTimeoutException, IceUtil::NullHandleException, IceUtil::OptionalNotSetException, IceUtil::SyscallException, IceUtil::ThreadLockedException, IceUtil::ThreadNotStartedException, IceUtil::ThreadStartedException, and IceUtil::ThreadSyscallException.

◆ ice_line()

int IceUtil::Exception::ice_line ( ) const

Returns the line number where this exception was constructed.

Returns
The line number.

◆ ice_name()

std::string IceUtil::Exception::ice_name ( ) const

◆ ice_print()

virtual void IceUtil::Exception::ice_print ( std::ostream & os) const
virtual

◆ ice_stackTrace()

std::string IceUtil::Exception::ice_stackTrace ( ) const

Returns the stack trace at the point this exception was constructed.

Returns
The stack trace as a string.

◆ ice_throw()

virtual void IceUtil::Exception::ice_throw ( ) const
pure virtual

Throws this exception.

Implemented in Glacier2::CannotCreateSessionException, Glacier2::PermissionDeniedException, Glacier2::SessionNotExistException, Ice::AdapterAlreadyActiveException, Ice::AdapterNotFoundException, Ice::AlreadyRegisteredException, Ice::BadMagicException, Ice::CFNetworkException, Ice::CloneNotImplementedException, Ice::CloseConnectionException, Ice::CloseTimeoutException, Ice::CollocationOptimizationException, Ice::CommunicatorDestroyedException, Ice::CompressionException, Ice::ConnectFailedException, Ice::ConnectionLostException, Ice::ConnectionManuallyClosedException, Ice::ConnectionNotValidatedException, Ice::ConnectionRefusedException, Ice::ConnectionTimeoutException, Ice::ConnectTimeoutException, Ice::DatagramLimitException, Ice::DNSException, Ice::EncapsulationException, Ice::EndpointParseException, Ice::EndpointSelectionTypeParseException, Ice::FacetNotExistException, Ice::FeatureNotSupportedException, Ice::FileException, Ice::FixedProxyException, Ice::IdentityParseException, Ice::IllegalIdentityException, Ice::IllegalMessageSizeException, Ice::IllegalServantException, Ice::InitializationException, Ice::InvalidReplicaGroupIdException, Ice::InvocationCanceledException, Ice::InvocationTimeoutException, Ice::MarshalException, Ice::MemoryLimitException, Ice::NoEndpointException, Ice::NotRegisteredException, Ice::NoValueFactoryException, Ice::ObjectAdapterDeactivatedException, Ice::ObjectAdapterIdInUseException, Ice::ObjectNotExistException, Ice::ObjectNotFoundException, Ice::OperationInterruptedException, Ice::OperationNotExistException, Ice::PluginInitializationException, Ice::ProtocolException, Ice::ProxyParseException, Ice::ProxyUnmarshalException, Ice::RemoteLoggerAlreadyAttachedException, Ice::RequestFailedException, Ice::ResponseSentException, Ice::SecurityException, Ice::ServerNotFoundException, Ice::SocketException, Ice::StringConversionException, Ice::SyscallException, Ice::TimeoutException, Ice::TwowayOnlyException, Ice::UnexpectedObjectException, Ice::UnknownException, Ice::UnknownLocalException, Ice::UnknownMessageException, Ice::UnknownReplyStatusException, Ice::UnknownRequestIdException, Ice::UnknownUserException, Ice::UnmarshalOutOfBoundsException, Ice::UnsupportedEncodingException, Ice::UnsupportedProtocolException, Ice::VersionMismatchException, Ice::VersionParseException, IceBox::AlreadyStartedException, IceBox::AlreadyStoppedException, IceBox::FailureException, IceBox::NoSuchServiceException, IceGrid::AccessDeniedException, IceGrid::AdapterNotExistException, IceGrid::AllocationException, IceGrid::AllocationTimeoutException, IceGrid::ApplicationNotExistException, IceGrid::BadSignalException, IceGrid::DeploymentException, IceGrid::FileNotAvailableException, IceGrid::NodeNotExistException, IceGrid::NodeUnreachableException, IceGrid::ObjectExistsException, IceGrid::ObjectNotRegisteredException, IceGrid::ObserverAlreadyRegisteredException, IceGrid::ParseException, IceGrid::PatchException, IceGrid::PermissionDeniedException, IceGrid::RegistryNotExistException, IceGrid::RegistryUnreachableException, IceGrid::ServerNotExistException, IceGrid::ServerStartException, IceGrid::ServerStopException, IceGrid::ServerUnreachableException, IceGrid::UserAccountNotFoundException, IceMX::UnknownMetricsView, IceStorm::AlreadySubscribed, IceStorm::BadQoS, IceStorm::InvalidSubscriber, IceStorm::LinkExists, IceStorm::NoSuchLink, IceStorm::NoSuchTopic, IceStorm::TopicExists, IceUtil::ExceptionHelper< E >, IceUtil::ExceptionHelper< APIException >, IceUtil::ExceptionHelper< BadOptException >, IceUtil::ExceptionHelper< BadThreadControlException >, IceUtil::ExceptionHelper< CertificateEncodingException >, IceUtil::ExceptionHelper< CertificateReadException >, IceUtil::ExceptionHelper< CtrlCHandlerException >, IceUtil::ExceptionHelper< FileLockException >, IceUtil::ExceptionHelper< IconvInitializationException >, IceUtil::ExceptionHelper< IllegalArgumentException >, IceUtil::ExceptionHelper< IllegalConversionException >, IceUtil::ExceptionHelper< InvalidTimeoutException >, IceUtil::ExceptionHelper< NullHandleException >, IceUtil::ExceptionHelper< OptionalNotSetException >, IceUtil::ExceptionHelper< ParseException >, IceUtil::ExceptionHelper< RestartSessionException >, IceUtil::ExceptionHelper< SyscallException >, IceUtil::ExceptionHelper< ThreadLockedException >, IceUtil::ExceptionHelper< ThreadNotStartedException >, IceUtil::ExceptionHelper< ThreadStartedException >, IceUtil::SyscallExceptionHelper< E >, and IceUtil::SyscallExceptionHelper< ThreadSyscallException >.

◆ what()

virtual const char * IceUtil::Exception::what ( ) const
throw ( )
virtual

Returns a description of this exception.

Returns
The description.

The documentation for this class was generated from the following file: