Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
Glacier2::CannotCreateSessionException Class Reference

This exception is raised if an attempt to create a new session failed. More...

#include <Glacier2/Glacier2.h>

Inheritance diagram for Glacier2::CannotCreateSessionException:
Collaboration diagram for Glacier2::CannotCreateSessionException:

Public Member Functions

 CannotCreateSessionException ()=default
 CannotCreateSessionException (const ::std::string &reason)
 One-shot constructor to initialize all data members.
 CannotCreateSessionException (const CannotCreateSessionException &)=default
virtual ::std::shared_ptr<::Ice::SlicedDataice_getSlicedData () const override
 Obtains the SlicedData object created when an unknown exception type was marshaled in the sliced format and the Ice run time sliced it to a known type.
std::tuple< const ::std::string & > ice_tuple () const
 Obtains a tuple containing all of the exception's data members.
virtual ~CannotCreateSessionException ()
Public Member Functions inherited from Ice::UserExceptionHelper< CannotCreateSessionException, ::Ice::UserException >
virtual std::string ice_id () const override
Public Member Functions inherited from IceUtil::ExceptionHelper< CannotCreateSessionException, ::Ice::UserException >
std::unique_ptr< CannotCreateSessionException > ice_clone () const
virtual void ice_throw () const override
 Throws this exception.
Public Member Functions inherited from Ice::UserException
std::unique_ptr< UserException > ice_clone () const
 Polymorphically clones this exception.
Public Member Functions inherited from IceUtil::Exception
 Exception ()
 Constructs the exception.
 Exception (const char *file, int line)
 Constructs the exception.
std::unique_ptr< Exceptionice_clone () const
 Returns a shallow polymorphic copy of this exception.
const char * ice_file () const
 Returns the name of the file where this exception was constructed.
int ice_line () const
 Returns the line number where this exception was constructed.
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 const char * what () const throw ()
 Returns a description of this exception.
virtual ~Exception () throw () =0

Static Public Member Functions

static const ::std::string & ice_staticId ()
 Obtains the Slice type ID of this exception.
Static Public Member Functions inherited from Ice::UserException
static const std::string & ice_staticId ()
 Obtains the Slice type ID of this exception.

Public Attributes

::std::string reason
 The reason why session creation has failed.

Detailed Description

This exception is raised if an attempt to create a new session failed.

Constructor & Destructor Documentation

◆ ~CannotCreateSessionException()

virtual Glacier2::CannotCreateSessionException::~CannotCreateSessionException ( )
virtual

◆ CannotCreateSessionException() [1/3]

Glacier2::CannotCreateSessionException::CannotCreateSessionException ( const CannotCreateSessionException & )
default

◆ CannotCreateSessionException() [2/3]

Glacier2::CannotCreateSessionException::CannotCreateSessionException ( )
default

◆ CannotCreateSessionException() [3/3]

Glacier2::CannotCreateSessionException::CannotCreateSessionException ( const ::std::string & reason)
inline

One-shot constructor to initialize all data members.

Parameters
reasonThe reason why session creation has failed.

Member Function Documentation

◆ ice_getSlicedData()

virtual ::std::shared_ptr<::Ice::SlicedData > Glacier2::CannotCreateSessionException::ice_getSlicedData ( ) const
overridevirtual

Obtains the SlicedData object created when an unknown exception type was marshaled in the sliced format and the Ice run time sliced it to a known type.

Returns
The SlicedData object, or nil if the exception was not sliced or was not marshaled in the sliced format.

Reimplemented from Ice::UserException.

◆ ice_staticId()

const ::std::string & Glacier2::CannotCreateSessionException::ice_staticId ( )
static

Obtains the Slice type ID of this exception.

Returns
The fully-scoped type ID.

◆ ice_tuple()

std::tuple< const ::std::string & > Glacier2::CannotCreateSessionException::ice_tuple ( ) const
inline

Obtains a tuple containing all of the exception's data members.

Returns
The data members in a tuple.

Member Data Documentation

◆ reason

::std::string Glacier2::CannotCreateSessionException::reason

The reason why session creation has failed.


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