#[non_exhaustive]pub enum TerragruntError {
Cycle(Vec<Arc<Path>>),
DepthExceeded {
limit: u32,
},
PathEscape {
path: PathBuf,
},
Func {
func: &'static str,
message: Box<str>,
span: Box<Span>,
},
}Expand description
Errors the Terragrunt resolver can surface.
Per 14-terragrunt.md § 6, the variants mirror the spec text. Cycle /
path-escape / depth-cap are recorded as crate::Diagnostics on the
returned crate::ir::TerragruntConfig in practice — only truly fatal
I/O errors (the parent dir disappears mid-walk) bubble up as
Err(crate::Error) via the From glue.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cycle(Vec<Arc<Path>>)
Include cycle detected. The vector captures the canonical stack at the moment the cycle was detected; the offending file is the next path the resolver would have entered.
DepthExceeded
Include stack exceeded the configured depth cap.
PathEscape
A path resolved by a Terragrunt function escapes the workspace root.
Func
A Terragrunt function call failed.
Trait Implementations§
Source§impl Debug for TerragruntError
impl Debug for TerragruntError
Source§impl Display for TerragruntError
impl Display for TerragruntError
Source§impl Error for TerragruntError
impl Error for TerragruntError
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()
Auto Trait Implementations§
impl Freeze for TerragruntError
impl RefUnwindSafe for TerragruntError
impl Send for TerragruntError
impl Sync for TerragruntError
impl Unpin for TerragruntError
impl UnsafeUnpin for TerragruntError
impl UnwindSafe for TerragruntError
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP