#[repr(i32)]pub enum ErrorCode {
Show 57 variants
Success = 0,
MessageBodyIsEmpty = 1,
UserLimited = 2,
NumberNotAssignedToYou = 3,
RecipientsEmpty = 4,
CreditNotEnough = 5,
NumberNotProfitForBulkSend = 7,
NumberCannotSendAtThisHour = 9,
MaxRecipientsExceeded = 98,
OperatorLineDisconnected = 99,
AudioFileExtensionInvalid = 21,
AudioFileSizeInvalid = 22,
AudioMessageRetryInvalid = 23,
PhonebookContactInvalid = 100,
ContactExists = 101,
ContactSaved = 102,
MaxRecipientsVoiceNotMet = 111,
VoiceRetryMustBeOne = 131,
AudioFileAddressNotEntered = 132,
UsernameSpecialChar = 301,
PricingNotSet = 302,
UsernameNotEntered = 303,
UsernameAlreadyChosen = 304,
NationalCodeNotEntered = 306,
NationalCodeInvalid = 307,
BirthCertInvalid = 308,
BirthCertNotEntered = 309,
EmailNotEntered = 310,
PhoneNotEntered = 311,
PhoneIncorrect = 312,
AddressNotEntered = 313,
MobileNotEntered = 314,
MobileIncorrect = 315,
AccessLevelIncorrect = 316,
PasswordNotEntered = 317,
FutureBulkCanceled = 455,
BulkCodeInvalid = 456,
TicketCodeInvalid = 458,
NoAgencyAccess = 964,
UsernameOrPasswordIncorrect = 962,
AccessInvalid = 963,
PatternInvalid = 971,
PatternParamsInvalid = 970,
PatternRecipientInvalid = 972,
SendTimeInvalid = 992,
PhonebookNotArray = 993,
NeedBankCardImage = 994,
NeedBankCardNumber = 995,
PatternNotActive = 996,
PatternNotAllowed = 997,
NationalIdOrCardNotApproved = 998,
UsernameFormatInvalid = 1_001,
PasswordTooSimple = 1_002,
RegistrationError = 1_003,
RegistrationError2 = 1_004,
RegistrationError3 = 1_005,
Unknown = -1,
}Expand description
Error codes returned by IPPanel API.
Each variant represents a specific error code and its meaning.
Variants§
Success = 0
MessageBodyIsEmpty = 1
UserLimited = 2
NumberNotAssignedToYou = 3
RecipientsEmpty = 4
CreditNotEnough = 5
NumberNotProfitForBulkSend = 7
NumberCannotSendAtThisHour = 9
MaxRecipientsExceeded = 98
OperatorLineDisconnected = 99
AudioFileExtensionInvalid = 21
AudioFileSizeInvalid = 22
AudioMessageRetryInvalid = 23
PhonebookContactInvalid = 100
ContactExists = 101
ContactSaved = 102
MaxRecipientsVoiceNotMet = 111
VoiceRetryMustBeOne = 131
AudioFileAddressNotEntered = 132
UsernameSpecialChar = 301
PricingNotSet = 302
UsernameNotEntered = 303
UsernameAlreadyChosen = 304
NationalCodeNotEntered = 306
NationalCodeInvalid = 307
BirthCertInvalid = 308
BirthCertNotEntered = 309
EmailNotEntered = 310
PhoneNotEntered = 311
PhoneIncorrect = 312
AddressNotEntered = 313
MobileNotEntered = 314
MobileIncorrect = 315
AccessLevelIncorrect = 316
PasswordNotEntered = 317
FutureBulkCanceled = 455
BulkCodeInvalid = 456
TicketCodeInvalid = 458
NoAgencyAccess = 964
UsernameOrPasswordIncorrect = 962
AccessInvalid = 963
PatternInvalid = 971
PatternParamsInvalid = 970
PatternRecipientInvalid = 972
SendTimeInvalid = 992
PhonebookNotArray = 993
NeedBankCardImage = 994
NeedBankCardNumber = 995
PatternNotActive = 996
PatternNotAllowed = 997
NationalIdOrCardNotApproved = 998
UsernameFormatInvalid = 1_001
PasswordTooSimple = 1_002
RegistrationError = 1_003
RegistrationError2 = 1_004
RegistrationError3 = 1_005
Unknown = -1
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.