#[repr(u32)]pub enum SablierError {
InvalidThreadResponse = 0,
InvalidThreadState = 1,
InvalidTriggerVariant = 2,
TriggerConditionFailed = 3,
ThreadBusy = 4,
ThreadPaused = 5,
RateLimitExeceeded = 6,
MaxRateLimitExceeded = 7,
UnauthorizedWrite = 8,
WithdrawalTooLarge = 9,
InvalidThreadAuthority = 10,
InvalidThreadAccount = 11,
}Expand description
Errors for the the Sablier thread program.
Variants§
InvalidThreadResponse = 0
Thrown if a exec response has an invalid program ID or cannot be parsed.
InvalidThreadState = 1
Thrown if a thread has an invalid state and cannot complete the operation.
InvalidTriggerVariant = 2
TThe provided trigger variant is invalid.
TriggerConditionFailed = 3
Thrown if a exec instruction is invalid because the thread’s trigger condition has not been met.
ThreadBusy = 4
ThreadPaused = 5
Thrown if a request is invalid because the thread is currently paused.
RateLimitExeceeded = 6
Thrown if a exec instruction would cause a thread to exceed its rate limit.
MaxRateLimitExceeded = 7
Thrown if a thread authority attempts to set a rate limit above the maximum allowed value.
Thrown if an inner instruction attempted to write to an unauthorized address.
WithdrawalTooLarge = 9
Thrown if the user attempts to withdraw SOL that would put a thread below it’s minimum rent threshold.
InvalidThreadAuthority = 10
Thrown if the provided authority does not match the thread’s authority.
InvalidThreadAccount = 11
Thrown if the provided account is not a valid Thread account.
Implementations§
Trait Implementations§
Source§impl Clone for SablierError
impl Clone for SablierError
Source§fn clone(&self) -> SablierError
fn clone(&self) -> SablierError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SablierError
impl Debug for SablierError
Source§impl Display for SablierError
impl Display for SablierError
impl Copy for SablierError
Auto Trait Implementations§
impl Freeze for SablierError
impl RefUnwindSafe for SablierError
impl Send for SablierError
impl Sync for SablierError
impl Unpin for SablierError
impl UnwindSafe for SablierError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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