Ice 3.7 C++11 API Reference
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Ice::NotRegisteredException Class Reference

An attempt was made to find or deregister something that is not registered with the Ice run time or Ice locator. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::NotRegisteredException:
Inheritance graph
[legend]
Collaboration diagram for Ice::NotRegisteredException:
Collaboration graph
[legend]

Public Member Functions

virtual void ice_print (::std::ostream &stream) const override
 Prints this exception to the given stream. More...
 
std::tuple< const ::std::string &, const ::std::string & > ice_tuple () const
 Obtains a tuple containing all of the exception's data members. More...
 
 NotRegisteredException (const char *file, int line)
 The file and line number are required for all local exceptions. More...
 
 NotRegisteredException (const char *file, int line, const ::std::string &kindOfObject, const ::std::string &id)
 One-shot constructor to initialize all data members. More...
 
 NotRegisteredException (const NotRegisteredException &)=default
 
virtual ~NotRegisteredException ()
 
- Public Member Functions inherited from Ice::LocalExceptionHelper< NotRegisteredException, LocalException >
virtual std::string ice_id () const override
 
- Public Member Functions inherited from IceUtil::ExceptionHelper< NotRegisteredException, LocalException >
std::unique_ptr< NotRegisteredException > ice_clone () const
 
virtual void ice_throw () const override
 Throws this exception. More...
 

Static Public Member Functions

static const ::std::string & ice_staticId ()
 Obtains the Slice type ID of this exception. More...
 

Public Attributes

::std::string id
 The ID (or name) of the object that could not be removed. More...
 
::std::string kindOfObject
 The kind of object that could not be removed: "servant", "facet", "object", "default servant", "servant locator", "value factory", "plugin", "object adapter", "object adapter with router", "replica group". More...
 

Detailed Description

An attempt was made to find or deregister something that is not registered with the Ice run time or Ice locator.

This exception is raised if an attempt is made to remove a servant, servant locator, facet, value factory, plug-in, object adapter, object, or user exception factory that is not currently registered.

It's also raised if the Ice locator can't find an object or object adapter when resolving an indirect proxy or when an object adapter is activated.

Constructor & Destructor Documentation

◆ ~NotRegisteredException()

virtual Ice::NotRegisteredException::~NotRegisteredException ( )
virtual

◆ NotRegisteredException() [1/3]

Ice::NotRegisteredException::NotRegisteredException ( const NotRegisteredException )
default

◆ NotRegisteredException() [2/3]

Ice::NotRegisteredException::NotRegisteredException ( const char *  file,
int  line 
)
inline

The file and line number are required for all local exceptions.

Parameters
fileThe file name in which the exception was raised, typically __FILE__.
lineThe line number at which the exception was raised, typically __LINE__.

◆ NotRegisteredException() [3/3]

Ice::NotRegisteredException::NotRegisteredException ( const char *  file,
int  line,
const ::std::string &  kindOfObject,
const ::std::string &  id 
)
inline

One-shot constructor to initialize all data members.

The file and line number are required for all local exceptions.

Parameters
fileThe file name in which the exception was raised, typically __FILE__.
lineThe line number at which the exception was raised, typically __LINE__.
kindOfObjectThe kind of object that could not be removed: "servant", "facet", "object", "default servant", "servant locator", "value factory", "plugin", "object adapter", "object adapter with router", "replica group".
idThe ID (or name) of the object that could not be removed.

Member Function Documentation

◆ ice_print()

virtual void Ice::NotRegisteredException::ice_print ( ::std::ostream &  stream) const
overridevirtual

Prints this exception to the given stream.

Parameters
streamThe target stream.

◆ ice_staticId()

static const ::std::string& Ice::NotRegisteredException::ice_staticId ( )
static

Obtains the Slice type ID of this exception.

Returns
The fully-scoped type ID.

◆ ice_tuple()

std::tuple<const ::std::string&, const ::std::string&> Ice::NotRegisteredException::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

◆ id

::std::string Ice::NotRegisteredException::id

The ID (or name) of the object that could not be removed.

◆ kindOfObject

::std::string Ice::NotRegisteredException::kindOfObject

The kind of object that could not be removed: "servant", "facet", "object", "default servant", "servant locator", "value factory", "plugin", "object adapter", "object adapter with router", "replica group".


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