pub enum VeracodeError {
Http(Error),
Serialization(Error),
Authentication(String),
InvalidResponse(String),
InvalidConfig(String),
NotFound(String),
RetryExhausted(String),
RateLimited {
retry_after_seconds: Option<u64>,
message: String,
},
}
Expand description
Custom error type for Veracode API operations.
This enum represents all possible errors that can occur when interacting with the Veracode Applications API.
Variants§
Http(Error)
HTTP request failed
Serialization(Error)
JSON serialization/deserialization failed
Authentication(String)
Authentication error (invalid credentials, signature generation failure, etc.)
InvalidResponse(String)
API returned an error response
InvalidConfig(String)
Configuration is invalid
NotFound(String)
When an item is not found
RetryExhausted(String)
When all retry attempts have been exhausted
RateLimited
Rate limit exceeded (HTTP 429) - includes server’s suggested retry delay
Trait Implementations§
Source§impl Debug for VeracodeError
impl Debug for VeracodeError
Source§impl Display for VeracodeError
impl Display for VeracodeError
Source§impl Error for VeracodeError
impl Error for VeracodeError
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()
Source§impl From<Error> for VeracodeError
impl From<Error> for VeracodeError
Source§fn from(error: ReqwestError) -> Self
fn from(error: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for VeracodeError
impl From<Error> for VeracodeError
Source§impl From<VeracodeError> for BuildError
impl From<VeracodeError> for BuildError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for FindingsError
impl From<VeracodeError> for FindingsError
Source§fn from(source: VeracodeError) -> Self
fn from(source: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for IdentityError
impl From<VeracodeError> for IdentityError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for PipelineError
impl From<VeracodeError> for PipelineError
Source§fn from(source: VeracodeError) -> Self
fn from(source: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for PolicyError
impl From<VeracodeError> for PolicyError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for SandboxError
impl From<VeracodeError> for SandboxError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for ScanError
impl From<VeracodeError> for ScanError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Source§impl From<VeracodeError> for WorkflowError
impl From<VeracodeError> for WorkflowError
Source§fn from(err: VeracodeError) -> Self
fn from(err: VeracodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VeracodeError
impl !RefUnwindSafe for VeracodeError
impl Send for VeracodeError
impl Sync for VeracodeError
impl Unpin for VeracodeError
impl !UnwindSafe for VeracodeError
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> 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.