honk/errors
Types
pub type ValidationError {
LexiconNotFound(collection: String)
InvalidSchema(message: String)
DataValidation(message: String)
}
Constructors
-
LexiconNotFound(collection: String) -
InvalidSchema(message: String) -
DataValidation(message: String)
Values
pub fn data_validation(message: String) -> ValidationError
Create a DataValidation error with context
pub fn invalid_schema(message: String) -> ValidationError
Create an InvalidSchema error with context
pub fn lexicon_not_found(collection: String) -> ValidationError
Create a LexiconNotFound error
pub fn to_string(error: ValidationError) -> String
Convert error to human-readable string