pub enum Error {
Show 26 variants
EmptyDeposit,
Anchor(AnchorError),
Client(Box<ClientError>),
Model(Error),
NumberOutOfRange,
Unknown(String),
Eyre(Error),
MissingReturnData,
Base64(DecodeError),
Io(Error),
NotFound,
Bytemuck(PodCastError),
InvalidArgument(String),
Fmt(Error),
Reqwest(Error),
ParseUrl(ParseError),
Sse(EventStreamError<Error>),
Json(Error),
Decode(DecodeError),
Lagged(BroadcastStreamRecvError),
PubsubClosed,
CompileMessage(CompileError),
SignerError(SignerError),
Transport(String),
Switchboard(String),
SolanaUtils(Error),
}
Expand description
Error type for gmsol
.
Variants§
EmptyDeposit
Empty deposit.
Anchor(AnchorError)
Anchor Error.
Client(Box<ClientError>)
Client Error.
Model(Error)
Model error.
NumberOutOfRange
Number out of range.
Unknown(String)
Unknown errors.
Eyre(Error)
Eyre errors.
MissingReturnData
Missing return data.
Base64(DecodeError)
Base64 Decode Error.
Io(Error)
IO Error.
NotFound
Not found.
Bytemuck(PodCastError)
Bytemuck error.
InvalidArgument(String)
Invalid Arguments.
Fmt(Error)
Format error.
Reqwest(Error)
Reqwest error.
ParseUrl(ParseError)
Parse url error.
Sse(EventStreamError<Error>)
SSE error.
Json(Error)
JSON error.
Decode(DecodeError)
Decode error.
Lagged(BroadcastStreamRecvError)
Lagged.
PubsubClosed
Pubsub client closed.
CompileMessage(CompileError)
Complie Solana Message Error.
SignerError(SignerError)
Signer Error.
Transport(String)
Transport Error.
Switchboard(String)
Switchboard Error.
SolanaUtils(Error)
Solana utils error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn invalid_argument(msg: impl ToString) -> Self
pub fn invalid_argument(msg: impl ToString) -> Self
Create an “invalid argument” error.
Sourcepub fn switchboard_error(msg: impl ToString) -> Self
pub fn switchboard_error(msg: impl ToString) -> Self
Create a switchboard error.
Sourcepub fn anchor_error_code(&self) -> Option<u32>
pub fn anchor_error_code(&self) -> Option<u32>
Anchor Error Code.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<TokenConfigError> for Error
impl From<TokenConfigError> for Error
Source§fn from(value: TokenConfigError) -> Self
fn from(value: TokenConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more