yodel/errors
Types
pub type ConfigError {
FileError(FileError)
ParseError(ParseError)
ResolverError(ResolverError)
ValidationError(ValidationError)
}
Constructors
-
FileError(FileError) -
ParseError(ParseError) -
ResolverError(ResolverError) -
ValidationError(ValidationError)
pub type FileError {
FileNotFound(path: String)
FilePermissionDenied(path: String)
FileReadError(details: String)
}
Constructors
-
FileNotFound(path: String) -
FilePermissionDenied(path: String) -
FileReadError(details: String)
pub type Location {
Location(line: Int, column: Int)
}
Constructors
-
Location(line: Int, column: Int)
pub type ParseError {
InvalidSyntax(SyntaxError)
InvalidStructure(details: String)
UnknownFormat
}
Constructors
-
InvalidSyntax(SyntaxError) -
InvalidStructure(details: String) -
UnknownFormat
pub type ResolverError {
UnresolvedPlaceholder(placeholder: String, value: String)
RegexError(details: String)
NoPlaceholderFound
}
Constructors
-
UnresolvedPlaceholder(placeholder: String, value: String) -
RegexError(details: String) -
NoPlaceholderFound
pub type SyntaxError {
SyntaxError(
format: String,
location: Location,
message: String,
)
}
Constructors
-
SyntaxError(format: String, location: Location, message: String)
pub type ValidationError {
EmptyConfig
InvalidConfig(details: String)
}
Constructors
-
EmptyConfig -
InvalidConfig(details: String)
Values
pub fn format_config_error(error: ConfigError) -> String