RequestError

public typealias RequestError = KituraContracts.RequestError

Extension of the RequestError from KituraContracts

  • Error when the Database has not been set

    Declaration

    Swift

    public static let ormDatabaseNotInitialized = RequestError(rawValue: 700, reason: "Database not Initialized")
  • Error when the createTable call fails

    Declaration

    Swift

    public static let ormTableCreationError = RequestError(rawValue: 701)
  • Error when the TypeDecoder failed to extract the types from the model

    Declaration

    Swift

    public static let ormCodableDecodingError = RequestError(rawValue: 702)
  • Error when the DatabaseDecoder could not construct a Model

    Declaration

    Swift

    public static let ormDatabaseDecodingError = RequestError(rawValue: 703)
  • Error when the DatabaseEncoder could not decode a Model

    Declaration

    Swift

    public static let ormDatabaseEncodingError = RequestError(rawValue: 704)
  • Error when the Query fails to be executed

    Declaration

    Swift

    public static let ormQueryError = RequestError(rawValue: 706)
  • Error when the values retrieved from the database are nil

    Declaration

    Swift

    public static let ormNotFound = RequestError(rawValue: 707)
  • Error when the table defined does not contain a specific column

    Declaration

    Swift

    public static let ormInvalidTableDefinition = RequestError(rawValue: 708)
  • Error when the Identifier could not be constructed

    Declaration

    Swift

    public static let ormIdentifierError = RequestError(rawValue: 709)
  • Error when an internal error occurs

    Declaration

    Swift

    public static let ormInternalError = RequestError(rawValue: 710)
  • Error when retrieving a connection from the database fails

    Declaration

    Swift

    public static let ormConnectionFailed = RequestError(rawValue: 711, reason: "Failed to retrieve a connection from the database")