pub enum BuildError {
Show 20 variants
DockerfileParse {
message: String,
line: usize,
},
ContextRead {
path: PathBuf,
source: Error,
},
PathEscape {
path: PathBuf,
},
FileIgnored {
path: PathBuf,
},
StageNotFound {
name: String,
},
RunFailed {
command: String,
exit_code: i32,
},
LayerCreate {
message: String,
},
CacheError {
message: String,
},
RegistryError {
message: String,
},
IoError(Error),
VariableExpansion(String),
InvalidInstruction {
instruction: String,
reason: String,
},
BuildahExecution {
command: String,
exit_code: i32,
stderr: String,
},
ContextTooLarge {
size: u64,
max: u64,
},
BaseImageNotFound {
image: String,
},
CircularDependency {
stages: Vec<String>,
},
BuildahNotFound {
message: String,
},
ZImagefileParse {
message: String,
},
ZImagefileValidation {
message: String,
},
PipelineError {
message: String,
},
}Expand description
Build-specific errors
Variants§
DockerfileParse
Dockerfile parsing failed
Fields
ContextRead
Failed to read build context
PathEscape
Path escape attempt detected (security violation)
FileIgnored
File was ignored by .dockerignore
StageNotFound
Referenced stage not found
RunFailed
RUN instruction failed
LayerCreate
Failed to create layer
CacheError
Cache operation failed
RegistryError
Registry operation failed
IoError(Error)
IO error
VariableExpansion(String)
Variable expansion failed
InvalidInstruction
Invalid instruction
BuildahExecution
Buildah command execution failed
Fields
ContextTooLarge
Build context too large
BaseImageNotFound
Base image not found
CircularDependency
Circular dependency in multi-stage build
BuildahNotFound
Buildah binary not found or installation failed
ZImagefileParse
ZImagefile YAML deserialization failed
ZImagefileValidation
ZImagefile semantic validation failed
PipelineError
Pipeline validation or execution error
Implementations§
Source§impl BuildError
impl BuildError
Sourcepub fn parse_error(msg: impl Into<String>, line: usize) -> Self
pub fn parse_error(msg: impl Into<String>, line: usize) -> Self
Create a DockerfileParse error from a message and line number
Sourcepub fn context_read(path: impl Into<PathBuf>, source: Error) -> Self
pub fn context_read(path: impl Into<PathBuf>, source: Error) -> Self
Create a ContextRead error from a path and IO error
Sourcepub fn path_escape(path: impl Into<PathBuf>) -> Self
pub fn path_escape(path: impl Into<PathBuf>) -> Self
Create a PathEscape error
Sourcepub fn stage_not_found(name: impl Into<String>) -> Self
pub fn stage_not_found(name: impl Into<String>) -> Self
Create a StageNotFound error
Sourcepub fn run_failed(command: impl Into<String>, exit_code: i32) -> Self
pub fn run_failed(command: impl Into<String>, exit_code: i32) -> Self
Create a RunFailed error
Sourcepub fn layer_create(msg: impl Into<String>) -> Self
pub fn layer_create(msg: impl Into<String>) -> Self
Create a LayerCreate error
Sourcepub fn cache_error(msg: impl Into<String>) -> Self
pub fn cache_error(msg: impl Into<String>) -> Self
Create a CacheError
Sourcepub fn registry_error(msg: impl Into<String>) -> Self
pub fn registry_error(msg: impl Into<String>) -> Self
Create a RegistryError
Sourcepub fn invalid_instruction(
instruction: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn invalid_instruction( instruction: impl Into<String>, reason: impl Into<String>, ) -> Self
Create an InvalidInstruction error
Sourcepub fn buildah_execution(
command: impl Into<String>,
exit_code: i32,
stderr: impl Into<String>,
) -> Self
pub fn buildah_execution( command: impl Into<String>, exit_code: i32, stderr: impl Into<String>, ) -> Self
Create a BuildahExecution error
Sourcepub fn buildah_not_found(message: impl Into<String>) -> Self
pub fn buildah_not_found(message: impl Into<String>) -> Self
Create a BuildahNotFound error
Sourcepub fn zimagefile_parse(message: impl Into<String>) -> Self
pub fn zimagefile_parse(message: impl Into<String>) -> Self
Create a ZImagefileParse error
Sourcepub fn zimagefile_validation(message: impl Into<String>) -> Self
pub fn zimagefile_validation(message: impl Into<String>) -> Self
Create a ZImagefileValidation error
Sourcepub fn pipeline_error(message: impl Into<String>) -> Self
pub fn pipeline_error(message: impl Into<String>) -> Self
Create a PipelineError
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for BuildError
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl !UnwindSafe for BuildError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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> 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> 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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more