Skip to main content

NamingError

Enum NamingError 

Source
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: NotFoundReason

Why the name was not found.

§rest_of_name: Name

The part of the name not resolved, from the component that failed.

§

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.

§rest_of_name: Name

The part of the name not resolved.

§

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

Source

pub fn repository_id(&self) -> &str

The repository id of the exception.

Source

pub fn as_system(&self) -> Option<&SystemException>

The system exception, if this is one.

Trait Implementations§

Source§

impl Clone for NamingError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NamingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for NamingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for NamingError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AlreadyBound> for NamingError

Source§

fn from(_: AlreadyBound) -> NamingError

Converts to this type from the input type.
Source§

impl From<BindContextError> for NamingError

Source§

fn from(e: BindContextError) -> NamingError

Converts to this type from the input type.
Source§

impl From<BindError> for NamingError

Source§

fn from(e: BindError) -> NamingError

Converts to this type from the input type.
Source§

impl From<BindNewContextError> for NamingError

Source§

fn from(e: BindNewContextError) -> NamingError

Converts to this type from the input type.
Source§

impl From<CannotProceed> for NamingError

Source§

fn from(e: CannotProceed) -> NamingError

Converts to this type from the input type.
Source§

impl From<DestroyError> for NamingError

Source§

fn from(e: DestroyError) -> NamingError

Converts to this type from the input type.
Source§

impl From<InvalidAddress> for NamingError

Source§

fn from(_: InvalidAddress) -> NamingError

Converts to this type from the input type.
Source§

impl From<InvalidName> for NamingError

Source§

fn from(_: InvalidName) -> NamingError

Converts to this type from the input type.
Source§

impl From<InvalidName> for NamingError

Source§

fn from(_: InvalidName) -> Self

Converts to this type from the input type.
Source§

impl From<NamingError> for BindError

Source§

fn from(e: NamingError) -> BindError

Converts to this type from the input type.
Source§

impl From<NamingError> for RebindError

Source§

fn from(e: NamingError) -> RebindError

Converts to this type from the input type.
Source§

impl From<NamingError> for BindContextError

Source§

fn from(e: NamingError) -> BindContextError

Converts to this type from the input type.
Source§

impl From<NamingError> for RebindContextError

Source§

fn from(e: NamingError) -> RebindContextError

Converts to this type from the input type.
Source§

impl From<NamingError> for ResolveError

Source§

fn from(e: NamingError) -> ResolveError

Converts to this type from the input type.
Source§

impl From<NamingError> for UnbindError

Source§

fn from(e: NamingError) -> UnbindError

Converts to this type from the input type.
Source§

impl From<NamingError> for BindNewContextError

Source§

fn from(e: NamingError) -> BindNewContextError

Converts to this type from the input type.
Source§

impl From<NamingError> for DestroyError

Source§

fn from(e: NamingError) -> DestroyError

Converts to this type from the input type.
Source§

impl From<NamingError> for ToStringError

Source§

fn from(e: NamingError) -> ToStringError

Converts to this type from the input type.
Source§

impl From<NamingError> for ToNameError

Source§

fn from(e: NamingError) -> ToNameError

Converts to this type from the input type.
Source§

impl From<NamingError> for ToUrlError

Source§

fn from(e: NamingError) -> ToUrlError

Converts to this type from the input type.
Source§

impl From<NamingError> for ResolveStrError

Source§

fn from(e: NamingError) -> ResolveStrError

Converts to this type from the input type.
Source§

impl From<NotEmpty> for NamingError

Source§

fn from(_: NotEmpty) -> NamingError

Converts to this type from the input type.
Source§

impl From<NotFound> for NamingError

Source§

fn from(e: NotFound) -> NamingError

Converts to this type from the input type.
Source§

impl From<RebindContextError> for NamingError

Source§

fn from(e: RebindContextError) -> NamingError

Converts to this type from the input type.
Source§

impl From<RebindError> for NamingError

Source§

fn from(e: RebindError) -> NamingError

Converts to this type from the input type.
Source§

impl From<ResolveError> for NamingError

Source§

fn from(e: ResolveError) -> NamingError

Converts to this type from the input type.
Source§

impl From<ResolveStrError> for NamingError

Source§

fn from(e: ResolveStrError) -> NamingError

Converts to this type from the input type.
Source§

impl From<SystemException> for NamingError

Source§

fn from(e: SystemException) -> Self

Converts to this type from the input type.
Source§

impl From<ToNameError> for NamingError

Source§

fn from(e: ToNameError) -> NamingError

Converts to this type from the input type.
Source§

impl From<ToStringError> for NamingError

Source§

fn from(e: ToStringError) -> NamingError

Converts to this type from the input type.
Source§

impl From<ToUrlError> for NamingError

Source§

fn from(e: ToUrlError) -> NamingError

Converts to this type from the input type.
Source§

impl From<UnbindError> for NamingError

Source§

fn from(e: UnbindError) -> NamingError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.