pub enum WorkflowError {
Api(VeracodeError),
Sandbox(SandboxError),
Scan(ScanError),
Build(BuildError),
Workflow(String),
AccessDenied(String),
NotFound(String),
}
Expand description
Errors that can occur during workflow operations
Variants§
Api(VeracodeError)
Veracode API error
Sandbox(SandboxError)
Sandbox operation error
Scan(ScanError)
Scan operation error
Build(BuildError)
Build operation error
Workflow(String)
Workflow-specific error
AccessDenied(String)
Access denied
NotFound(String)
Resource not found
Trait Implementations§
Source§impl Debug for WorkflowError
impl Debug for WorkflowError
Source§impl Display for WorkflowError
impl Display for WorkflowError
Source§impl Error for WorkflowError
impl Error for WorkflowError
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<BuildError> for WorkflowError
impl From<BuildError> for WorkflowError
Source§fn from(err: BuildError) -> Self
fn from(err: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<SandboxError> for WorkflowError
impl From<SandboxError> for WorkflowError
Source§fn from(err: SandboxError) -> Self
fn from(err: SandboxError) -> Self
Converts to this type from the input type.
Source§impl From<ScanError> for WorkflowError
impl From<ScanError> for WorkflowError
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 WorkflowError
impl !RefUnwindSafe for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin for WorkflowError
impl !UnwindSafe for WorkflowError
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.