pub enum ServiceError {
TypeMismatch {
expected: String,
found: String,
},
UnknownMethod(String),
DomainNotFound(String),
FileNotFound {
domain: String,
filename: String,
},
RegistryDomainNotFound(String),
EntityNotFound(u64),
ComponentNotFound {
entity: u64,
type_name: String,
},
ContentFileNotFound(String),
ParseError(String),
Internal(String),
}Expand description
Errors that occur during Service API calls or Registry access.
All variants are Clone + Debug for passing across the WASM boundary.
Variants§
TypeMismatch
An argument did not match the expected type.
UnknownMethod(String)
Method not found on the service.
DomainNotFound(String)
Service domain is not registered.
FileNotFound
File not found in Registry at domain/filename.
RegistryDomainNotFound(String)
Registry domain not found.
EntityNotFound(u64)
Entity not found in the ECS world.
ComponentNotFound
Component not found on entity.
ContentFileNotFound(String)
Content file not found by path.
ParseError(String)
Error parsing registry data (RON / JSON / binary).
Internal(String)
Internal / generic error.
Trait Implementations§
Source§impl Clone for ServiceError
impl Clone for ServiceError
Source§fn clone(&self) -> ServiceError
fn clone(&self) -> ServiceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ServiceError
impl RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl UnsafeUnpin for ServiceError
impl UnwindSafe for ServiceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more