pub trait UserFacingError: Serialize {
    const ERROR_CODE: &'static str;

    // Required method
    fn message(&self) -> String;
}

Required Associated Constants§

source

const ERROR_CODE: &'static str

Required Methods§

source

fn message(&self) -> String

Object Safety§

This trait is not object safe.

Implementors§

source§

impl UserFacingError for DatabaseDoesNotExist

source§

const ERROR_CODE: &'static str = "P1003"

source§

impl UserFacingError for DatabaseAccessDenied

source§

const ERROR_CODE: &'static str = "P1010"

source§

impl UserFacingError for DatabaseAlreadyExists

source§

const ERROR_CODE: &'static str = "P1009"

source§

impl UserFacingError for DatabaseNotReachable

source§

const ERROR_CODE: &'static str = "P1001"

source§

impl UserFacingError for DatabaseOperationTimeout

source§

const ERROR_CODE: &'static str = "P1008"

source§

impl UserFacingError for DatabaseTimeout

source§

const ERROR_CODE: &'static str = "P1002"

source§

impl UserFacingError for DatabaseVersionIncompatibility

source§

const ERROR_CODE: &'static str = "P1015"

source§

impl UserFacingError for IncorrectDatabaseCredentials

source§

const ERROR_CODE: &'static str = "P1000"

source§

impl UserFacingError for IncorrectNumberOfParameters

source§

const ERROR_CODE: &'static str = "P1016"

source§

impl UserFacingError for InvalidConnectionString

source§

const ERROR_CODE: &'static str = "P1013"

source§

impl UserFacingError for InvalidModel

source§

const ERROR_CODE: &'static str = "P1014"

source§

impl UserFacingError for SchemaParserError

source§

const ERROR_CODE: &'static str = "P1012"

source§

impl UserFacingError for TlsConnectionError

source§

const ERROR_CODE: &'static str = "P1011"

source§

impl UserFacingError for TransactionAlreadyClosed

source§

const ERROR_CODE: &'static str = "P1018"

source§

impl UserFacingError for UnsupportedFeatureError

source§

const ERROR_CODE: &'static str = "P1019"

source§

impl UserFacingError for ColumnDoesNotExist

source§

const ERROR_CODE: &'static str = "P2022"

source§

impl UserFacingError for ConnectedRecordsNotFound

source§

const ERROR_CODE: &'static str = "P2018"

source§

impl UserFacingError for ConstraintViolation

source§

const ERROR_CODE: &'static str = "P2004"

source§

impl UserFacingError for DatabaseAssertionViolation

source§

const ERROR_CODE: &'static str = "P2035"

source§

impl UserFacingError for ExternalError

source§

const ERROR_CODE: &'static str = "P2036"

source§

impl UserFacingError for ForeignKeyViolation

source§

const ERROR_CODE: &'static str = "P2003"

source§

impl UserFacingError for InconsistentColumnData

source§

const ERROR_CODE: &'static str = "P2023"

source§

impl UserFacingError for InputError

source§

const ERROR_CODE: &'static str = "P2019"

source§

impl UserFacingError for InputValueTooLong

source§

const ERROR_CODE: &'static str = "P2000"

source§

impl UserFacingError for InteractiveTransactionError

source§

const ERROR_CODE: &'static str = "P2028"

source§

impl UserFacingError for InterpretationError

source§

const ERROR_CODE: &'static str = "P2016"

source§

impl UserFacingError for MissingFieldsInModel

source§

const ERROR_CODE: &'static str = "P2032"

source§

impl UserFacingError for MissingFullTextSearchIndex

source§

const ERROR_CODE: &'static str = "P2030"

source§

impl UserFacingError for MissingRequiredArgument

source§

const ERROR_CODE: &'static str = "P2013"

source§

impl UserFacingError for MongoReplicaSetRequired

source§

const ERROR_CODE: &'static str = "P2031"

source§

impl UserFacingError for MultiError

source§

const ERROR_CODE: &'static str = "P2027"

source§

impl UserFacingError for NullConstraintViolation

source§

const ERROR_CODE: &'static str = "P2011"

source§

impl UserFacingError for PoolTimeout

source§

const ERROR_CODE: &'static str = "P2024"

source§

impl UserFacingError for QueryParameterLimitExceeded

source§

const ERROR_CODE: &'static str = "P2029"

source§

impl UserFacingError for QueryParsingFailed

source§

const ERROR_CODE: &'static str = "P2008"

source§

impl UserFacingError for RawQueryFailed

source§

const ERROR_CODE: &'static str = "P2010"

source§

impl UserFacingError for RecordNotFound

source§

const ERROR_CODE: &'static str = "P2001"

source§

impl UserFacingError for RecordRequiredButNotFound

source§

const ERROR_CODE: &'static str = "P2025"

source§

impl UserFacingError for RecordsNotConnected

source§

const ERROR_CODE: &'static str = "P2017"

source§

impl UserFacingError for RelatedRecordNotFound

source§

const ERROR_CODE: &'static str = "P2015"

source§

impl UserFacingError for RelationViolation

source§

const ERROR_CODE: &'static str = "P2014"

source§

impl UserFacingError for StoredValueIsInvalid

source§

const ERROR_CODE: &'static str = "P2005"

source§

impl UserFacingError for TableDoesNotExist

source§

const ERROR_CODE: &'static str = "P2021"

source§

impl UserFacingError for TransactionWriteConflict

source§

const ERROR_CODE: &'static str = "P2034"

source§

impl UserFacingError for TypeMismatch

source§

const ERROR_CODE: &'static str = "P2006"

source§

impl UserFacingError for TypeMismatchInvalidCustomType

source§

const ERROR_CODE: &'static str = "P2007"

source§

impl UserFacingError for UniqueKeyViolation

source§

const ERROR_CODE: &'static str = "P2002"

source§

impl UserFacingError for UnsupportedFeature

source§

const ERROR_CODE: &'static str = "P2026"

source§

impl UserFacingError for ValueFitError

source§

const ERROR_CODE: &'static str = "P2033"

source§

impl UserFacingError for ValueOutOfRange

source§

const ERROR_CODE: &'static str = "P2020"

source§

impl UserFacingError for ApplyMigrationError

source§

const ERROR_CODE: &'static str = "P3018"

source§

impl UserFacingError for CannotRollBackSucceededMigration

source§

const ERROR_CODE: &'static str = "P3012"

source§

impl UserFacingError for CannotRollBackUnappliedMigration

source§

const ERROR_CODE: &'static str = "P3011"

source§

impl UserFacingError for DatabaseCreationFailed

source§

const ERROR_CODE: &'static str = "P3000"

source§

impl UserFacingError for DatabaseSchemaInconsistent

source§

const ERROR_CODE: &'static str = "P4002"

source§

impl UserFacingError for DestructiveMigrationDetected

source§

const ERROR_CODE: &'static str = "P3001"

source§

impl UserFacingError for FoundFailedMigrations

source§

const ERROR_CODE: &'static str = "P3009"

source§

impl UserFacingError for MigrateSystemDatabase

source§

const ERROR_CODE: &'static str = "P3004"

source§

impl UserFacingError for MigrationAlreadyApplied

source§

const ERROR_CODE: &'static str = "P3008"

source§

impl UserFacingError for MigrationDoesNotApplyCleanly

source§

const ERROR_CODE: &'static str = "P3006"

source§

impl UserFacingError for MigrationFileNotFound

source§

const ERROR_CODE: &'static str = "P3015"

source§

impl UserFacingError for MigrationToMarkAppliedNotFound

source§

const ERROR_CODE: &'static str = "P3017"

source§

impl UserFacingError for PreviewFeaturesBlocked

source§

const ERROR_CODE: &'static str = "P3007"

source§

impl UserFacingError for ProviderSwitchedError

source§

const ERROR_CODE: &'static str = "P3019"

source§

impl UserFacingError for ShadowDbCreationError

source§

const ERROR_CODE: &'static str = "P3014"

source§

impl UserFacingError for SoftResetFailed

source§

const ERROR_CODE: &'static str = "P3016"

source§

impl<T> UserFacingError for Twhere T: SimpleUserFacingError + Serialize,

source§

const ERROR_CODE: &'static str = <Self as SimpleUserFacingError>::ERROR_CODE