pub enum NamingError {
NotFound {
why: NotFoundReason,
rest_of_name: Name,
},
CannotProceed {
context: Option<NamingContext>,
rest_of_name: Name,
},
InvalidName,
AlreadyBound,
NotEmpty,
InvalidAddress,
System(SystemException),
}Expand description
How a naming operation failed: one of the CosNaming user exceptions, or a system exception.
Which user exceptions an operation can raise is listed on it. A user
exception the operation does not declare becomes UNKNOWN (minor
UNLISTED_USER_EXCEPTION), as for any IDL stub.
Variants§
NotFound
NamingContext::NotFound: resolving rest_of_name failed for
why.
Fields
why: NotFoundReasonWhy the name was not found.
CannotProceed
NamingContext::CannotProceed: the naming service gave up on
rest_of_name, which the client may resolve in context itself.
Fields
context: Option<NamingContext>The context to continue in.
InvalidName
NamingContext::InvalidName: the name is empty or a component is
not valid. Also raised locally for a malformed stringified name.
AlreadyBound
NamingContext::AlreadyBound: bind on a name that is bound.
NotEmpty
NamingContext::NotEmpty: destroy on a context with bindings.
InvalidAddress
NamingContextExt::InvalidAddress: to_url with an address that is
not a valid corbaloc address list.
System(SystemException)
A system exception.
Implementations§
Source§impl NamingError
impl NamingError
Sourcepub fn repository_id(&self) -> &str
pub fn repository_id(&self) -> &str
The repository id of the exception.
Sourcepub fn as_system(&self) -> Option<&SystemException>
pub fn as_system(&self) -> Option<&SystemException>
The system exception, if this is one.
Trait Implementations§
Source§impl Clone for NamingError
impl Clone for NamingError
Source§impl Debug for NamingError
impl Debug for NamingError
Source§impl Display for NamingError
impl Display for NamingError
Source§impl Error for NamingError
impl Error for NamingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()