object SqlState extends Enum[SqlState]
Enumerated type of Postgres error codes. These can be used as extractors for error handling, for example:
doSomething.recoverWith { case SqlState.ForeignKeyViolation(ex) => ... }
- Source
- SqlState.scala
- See also
- Grouped
- Alphabetic
- By Inheritance
- SqlState
- Enum
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- macro def findValues: IndexedSeq[SqlState]
- Attributes
- protected
- Definition Classes
- Enum
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexOf(member: SqlState): Int
- Definition Classes
- Enum
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final lazy val lowerCaseNamesToValuesMap: Map[String, SqlState]
- Definition Classes
- Enum
- lazy val namesToValuesMap: Map[String, SqlState]
- Definition Classes
- Enum
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final lazy val upperCaseNameValuesToMap: Map[String, SqlState]
- Definition Classes
- Enum
- val values: IndexedSeq[SqlState]
- Definition Classes
- SqlState → Enum
- final lazy val valuesToIndex: Map[SqlState, Int]
- Definition Classes
- Enum
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withName(name: String): SqlState
- Definition Classes
- Enum
- Annotations
- @SuppressWarnings()
- def withNameEither(name: String): Either[NoSuchMember[SqlState], SqlState]
- Definition Classes
- Enum
- def withNameInsensitive(name: String): SqlState
- Definition Classes
- Enum
- Annotations
- @SuppressWarnings()
- def withNameInsensitiveEither(name: String): Either[NoSuchMember[SqlState], SqlState]
- Definition Classes
- Enum
- def withNameInsensitiveOption(name: String): Option[SqlState]
- Definition Classes
- Enum
- def withNameLowercaseOnly(name: String): SqlState
- Definition Classes
- Enum
- Annotations
- @SuppressWarnings()
- def withNameLowercaseOnlyEither(name: String): Either[NoSuchMember[SqlState], SqlState]
- Definition Classes
- Enum
- def withNameLowercaseOnlyOption(name: String): Option[SqlState]
- Definition Classes
- Enum
- def withNameOption(name: String): Option[SqlState]
- Definition Classes
- Enum
- def withNameUppercaseOnly(name: String): SqlState
- Definition Classes
- Enum
- Annotations
- @SuppressWarnings()
- def withNameUppercaseOnlyEither(name: String): Either[NoSuchMember[SqlState], SqlState]
- Definition Classes
- Enum
- def withNameUppercaseOnlyOption(name: String): Option[SqlState]
- Definition Classes
- Enum
- case object ActiveSqlTransaction extends SqlState with Product with Serializable
SqlState
25001
- case object AdminShutdown extends SqlState with Product with Serializable
SqlState
57P01
- case object AmbiguousAlias extends SqlState with Product with Serializable
SqlState
42P09
- case object AmbiguousColumn extends SqlState with Product with Serializable
SqlState
42702
- case object AmbiguousFunction extends SqlState with Product with Serializable
SqlState
42725
- case object AmbiguousParameter extends SqlState with Product with Serializable
SqlState
42P08
- case object ArraySubscriptError extends SqlState with Product with Serializable
SqlState
2202E
- case object BadCopyFileFormat extends SqlState with Product with Serializable
SqlState
22P04
- case object BranchTransactionAlreadyActive extends SqlState with Product with Serializable
SqlState
25002
- case object CannotCoerce extends SqlState with Product with Serializable
SqlState
42846
- case object CannotConnectNow extends SqlState with Product with Serializable
SqlState
57P03
- case object CantChangeRuntimeParam extends SqlState with Product with Serializable
SqlState
55P02
- case object CardinalityViolation extends SqlState with Product with Serializable
SqlState
21000
- case object CaseNotFound extends SqlState with Product with Serializable
SqlState
20000
- case object CharacterNotInRepertoire extends SqlState with Product with Serializable
SqlState
22021
- case object CheckViolation extends SqlState with Product with Serializable
SqlState
23514
- case object ConfigFileError extends SqlState with Product with Serializable
SqlState
F0000
- case object ConnectionDoesNotExist extends SqlState with Product with Serializable
SqlState
08003
- case object ConnectionException extends SqlState with Product with Serializable
SqlState
08000
- case object ConnectionFailure extends SqlState with Product with Serializable
SqlState
08006
- case object ContainingSqlNotPermitted extends SqlState with Product with Serializable
SqlState
38001
- case object CrashShutdown extends SqlState with Product with Serializable
SqlState
57P02
- case object DataCorrupted extends SqlState with Product with Serializable
SqlState
XX001
- case object DataException extends SqlState with Product with Serializable
SqlState
22000
- case object DatabaseDropped extends SqlState with Product with Serializable
SqlState
57P04
- case object DatatypeMismatch extends SqlState with Product with Serializable
SqlState
42804
- case object DatetimeFieldOverflow extends SqlState with Product with Serializable
SqlState
22008
- case object DeadlockDetected extends SqlState with Product with Serializable
SqlState
40P01
- case object DependentObjectsStillExist extends SqlState with Product with Serializable
SqlState
2BP01
- case object DependentPrivilegeDescriptorsStillExist extends SqlState with Product with Serializable
SqlState
2B000
- case object DeprecatedFeature extends SqlState with Product with Serializable
SqlState
01P01
- case object DiskFull extends SqlState with Product with Serializable
SqlState
53100
- case object DivisionByZero extends SqlState with Product with Serializable
SqlState
22012
- case object DuplicateAlias extends SqlState with Product with Serializable
SqlState
42712
- case object DuplicateColumn extends SqlState with Product with Serializable
SqlState
42701
- case object DuplicateCursor extends SqlState with Product with Serializable
SqlState
42P03
- case object DuplicateDatabase extends SqlState with Product with Serializable
SqlState
42P04
- case object DuplicateFile extends SqlState with Product with Serializable
SqlState
58P02
- case object DuplicateFunction extends SqlState with Product with Serializable
SqlState
42723
- case object DuplicateObject extends SqlState with Product with Serializable
SqlState
42710
- case object DuplicatePreparedStatement extends SqlState with Product with Serializable
SqlState
42P05
- case object DuplicateSchema extends SqlState with Product with Serializable
SqlState
42P06
- case object DuplicateTable extends SqlState with Product with Serializable
SqlState
42P07
- case object DynamicResultSetsReturned extends SqlState with Product with Serializable
SqlState
0100C
- case object ErrorInAssignment extends SqlState with Product with Serializable
SqlState
22005
- case object EscapeCharacterConflict extends SqlState with Product with Serializable
SqlState
2200B
- case object ExclusionViolation extends SqlState with Product with Serializable
SqlState
23P01
- case object ExternalRoutineException extends SqlState with Product with Serializable
SqlState
38000
- case object ExternalRoutineInvocationException extends SqlState with Product with Serializable
SqlState
39000
- case object FeatureNotSupported extends SqlState with Product with Serializable
SqlState
0A000
- case object FloatingPointException extends SqlState with Product with Serializable
SqlState
22P01
- case object ForeignKeyViolation extends SqlState with Product with Serializable
SqlState
23503
- case object FunctionExecutedNoReturnStatement extends SqlState with Product with Serializable
SqlState
2F005
- case object GroupingError extends SqlState with Product with Serializable
SqlState
42803
- case object HeldCursorRequiresSameIsolationLevel extends SqlState with Product with Serializable
SqlState
25008
- case object ImplicitZeroBitPadding extends SqlState with Product with Serializable
SqlState
01008
- case object InFailedSqlTransaction extends SqlState with Product with Serializable
SqlState
25P02
- case object InappropriateAccessModeForBranchTransaction extends SqlState with Product with Serializable
SqlState
25003
- case object InappropriateIsolationLevelForBranchTransaction extends SqlState with Product with Serializable
SqlState
25004
- case object IndeterminateDatatype extends SqlState with Product with Serializable
SqlState
42P18
- case object IndexCorrupted extends SqlState with Product with Serializable
SqlState
XX002
- case object IndicatorOverflow extends SqlState with Product with Serializable
SqlState
22022
- case object InsufficientPrivilege extends SqlState with Product with Serializable
SqlState
42501
- case object InsufficientResources extends SqlState with Product with Serializable
SqlState
53000
- case object IntegrityConstraintViolation extends SqlState with Product with Serializable
SqlState
23000
- case object InternalError extends SqlState with Product with Serializable
SqlState
XX000
- case object IntervalFieldOverflow extends SqlState with Product with Serializable
SqlState
22015
- case object InvalidArgumentForLogarithm extends SqlState with Product with Serializable
SqlState
2201E
- case object InvalidArgumentForNthValueFunction extends SqlState with Product with Serializable
SqlState
22016
- case object InvalidArgumentForNtileFunction extends SqlState with Product with Serializable
SqlState
22014
- case object InvalidArgumentForPowerFunction extends SqlState with Product with Serializable
SqlState
2201F
- case object InvalidArgumentForWidthBucketFunction extends SqlState with Product with Serializable
SqlState
2201G
- case object InvalidAuthorizationSpecification extends SqlState with Product with Serializable
SqlState
28000
- case object InvalidBinaryRepresentation extends SqlState with Product with Serializable
SqlState
22P03
- case object InvalidCatalogName extends SqlState with Product with Serializable
SqlState
3D000
- case object InvalidCharacterValueForCast extends SqlState with Product with Serializable
SqlState
22018
- case object InvalidColumnDefinition extends SqlState with Product with Serializable
SqlState
42611
- case object InvalidColumnReference extends SqlState with Product with Serializable
SqlState
42P10
- case object InvalidCursorDefinition extends SqlState with Product with Serializable
SqlState
42P11
- case object InvalidCursorName extends SqlState with Product with Serializable
SqlState
34000
- case object InvalidCursorState extends SqlState with Product with Serializable
SqlState
24000
- case object InvalidDatabaseDefinition extends SqlState with Product with Serializable
SqlState
42P12
- case object InvalidDatetimeFormat extends SqlState with Product with Serializable
SqlState
22007
- case object InvalidEscapeCharacter extends SqlState with Product with Serializable
SqlState
22019
- case object InvalidEscapeOctet extends SqlState with Product with Serializable
SqlState
2200D
- case object InvalidEscapeSequence extends SqlState with Product with Serializable
SqlState
22025
- case object InvalidForeignKey extends SqlState with Product with Serializable
SqlState
42830
- case object InvalidFunctionDefinition extends SqlState with Product with Serializable
SqlState
42P13
- case object InvalidGrantOperation extends SqlState with Product with Serializable
SqlState
0LP01
- case object InvalidGrantor extends SqlState with Product with Serializable
SqlState
0L000
- case object InvalidIndicatorParameterValue extends SqlState with Product with Serializable
SqlState
22010
- case object InvalidLocatorSpecification extends SqlState with Product with Serializable
SqlState
0F001
- case object InvalidName extends SqlState with Product with Serializable
SqlState
42602
- case object InvalidObjectDefinition extends SqlState with Product with Serializable
SqlState
42P17
- case object InvalidParameterValue extends SqlState with Product with Serializable
SqlState
22023
- case object InvalidPassword extends SqlState with Product with Serializable
SqlState
28P01
- case object InvalidPreparedStatementDefinition extends SqlState with Product with Serializable
SqlState
42P14
- case object InvalidRecursion extends SqlState with Product with Serializable
SqlState
42P19
- case object InvalidRegularExpression extends SqlState with Product with Serializable
SqlState
2201B
- case object InvalidRoleSpecification extends SqlState with Product with Serializable
SqlState
0P000
- case object InvalidRowCountInLimitClause extends SqlState with Product with Serializable
SqlState
2201W
- case object InvalidRowCountInResultOffsetClause extends SqlState with Product with Serializable
SqlState
2201X
- case object InvalidSavepointSpecification extends SqlState with Product with Serializable
SqlState
3B001
- case object InvalidSchemaDefinition extends SqlState with Product with Serializable
SqlState
42P15
- case object InvalidSchemaName extends SqlState with Product with Serializable
SqlState
3F000
- case object InvalidSqlStatementName extends SqlState with Product with Serializable
SqlState
26000
- case object InvalidSqlstateReturned extends SqlState with Product with Serializable
SqlState
39001
- case object InvalidTableDefinition extends SqlState with Product with Serializable
SqlState
42P16
- case object InvalidTextRepresentation extends SqlState with Product with Serializable
SqlState
22P02
- case object InvalidTimeZoneDisplacementValue extends SqlState with Product with Serializable
SqlState
22009
- case object InvalidTransactionInitiation extends SqlState with Product with Serializable
SqlState
0B000
- case object InvalidTransactionState extends SqlState with Product with Serializable
SqlState
25000
- case object InvalidTransactionTermination extends SqlState with Product with Serializable
SqlState
2D000
- case object InvalidUseOfEscapeCharacter extends SqlState with Product with Serializable
SqlState
2200C
- case object InvalidXmlComment extends SqlState with Product with Serializable
SqlState
2200S
- case object InvalidXmlContent extends SqlState with Product with Serializable
SqlState
2200N
- case object InvalidXmlDocument extends SqlState with Product with Serializable
SqlState
2200M
- case object InvalidXmlProcessingInstruction extends SqlState with Product with Serializable
SqlState
2200T
- case object IoError extends SqlState with Product with Serializable
SqlState
58030
- case object LocatorException extends SqlState with Product with Serializable
SqlState
0F000
- case object LockFileExists extends SqlState with Product with Serializable
SqlState
F0001
- case object LockNotAvailable extends SqlState with Product with Serializable
SqlState
55P03
- case object ModifyingSqlDataNotPermitted2F extends SqlState with Product with Serializable
SqlState
2F002
- case object ModifyingSqlDataNotPermitted38 extends SqlState with Product with Serializable
SqlState
38002
- case object MostSpecificTypeMismatch extends SqlState with Product with Serializable
SqlState
2200G
- case object NameTooLong extends SqlState with Product with Serializable
SqlState
42622
- case object NoActiveSqlTransaction extends SqlState with Product with Serializable
SqlState
25P01
- case object NoActiveSqlTransactionForBranchTransaction extends SqlState with Product with Serializable
SqlState
25005
- case object NoAdditionalDynamicResultSetsReturned extends SqlState with Product with Serializable
SqlState
02001
- case object NoData extends SqlState with Product with Serializable
SqlState
02000
- case object NoDataFound extends SqlState with Product with Serializable
SqlState
P0002
- case object NonstandardUseOfEscapeCharacter extends SqlState with Product with Serializable
SqlState
22P06
- case object NotAnXmlDocument extends SqlState with Product with Serializable
SqlState
2200L
- case object NotNullViolation extends SqlState with Product with Serializable
SqlState
23502
- case object NullValueEliminatedInSetFunction extends SqlState with Product with Serializable
SqlState
01003
- case object NullValueNoIndicatorParameter extends SqlState with Product with Serializable
SqlState
22002
- case object NullValueNotAllowed extends SqlState with Product with Serializable
SqlState
22004
- case object NullValueNotAllowed39 extends SqlState with Product with Serializable
SqlState
39004
- case object NumericValueOutOfRange extends SqlState with Product with Serializable
SqlState
22003
- case object ObjectInUse extends SqlState with Product with Serializable
SqlState
55006
- case object ObjectNotInPrerequisiteState extends SqlState with Product with Serializable
SqlState
55000
- case object OperatorIntervention extends SqlState with Product with Serializable
SqlState
57000
- case object OutOfMemory extends SqlState with Product with Serializable
SqlState
53200
- case object PlpgsqlError extends SqlState with Product with Serializable
SqlState
P0000
- case object PrivilegeNotGranted extends SqlState with Product with Serializable
SqlState
01007
- case object PrivilegeNotRevoked extends SqlState with Product with Serializable
SqlState
01006
- case object ProgramLimitExceeded extends SqlState with Product with Serializable
SqlState
54000
- case object ProhibitedSqlStatementAttempted2F extends SqlState with Product with Serializable
SqlState
2F003
- case object ProhibitedSqlStatementAttempted38 extends SqlState with Product with Serializable
SqlState
38003
- case object ProtocolViolation extends SqlState with Product with Serializable
SqlState
08P01
- case object QueryCanceled extends SqlState with Product with Serializable
SqlState
57014
- case object RaiseException extends SqlState with Product with Serializable
SqlState
P0001
- case object ReadOnlySqlTransaction extends SqlState with Product with Serializable
SqlState
25006
- case object ReadingSqlDataNotPermitted2F extends SqlState with Product with Serializable
SqlState
2F004
- case object ReadingSqlDataNotPermitted38 extends SqlState with Product with Serializable
SqlState
38004
- case object ReservedName extends SqlState with Product with Serializable
SqlState
42939
- case object RestrictViolation extends SqlState with Product with Serializable
SqlState
23001
- case object SavepointException extends SqlState with Product with Serializable
SqlState
3B000
- case object SchemaAndDataStatementMixingNotSupported extends SqlState with Product with Serializable
SqlState
25007
- case object SerializationFailure extends SqlState with Product with Serializable
SqlState
40001
- case object SqlClientUnableToEstablishSqlConnection extends SqlState with Product with Serializable
SqlState
08001
- case object SqlRoutineException extends SqlState with Product with Serializable
SqlState
2F000
- case object SqlServerRejectedEstablishmentOfSqlConnection extends SqlState with Product with Serializable
SqlState
08004
- case object SqlStatementNotYetComplete extends SqlState with Product with Serializable
SqlState
03000
- case object SrfProtocolViolated extends SqlState with Product with Serializable
SqlState
39P02
- case object StatementCompletionUnknown extends SqlState with Product with Serializable
SqlState
40003
- case object StatementTooComplex extends SqlState with Product with Serializable
SqlState
54001
- case object StringDataLengthMismatch extends SqlState with Product with Serializable
SqlState
22026
- case object StringDataRightTruncation extends SqlState with Product with Serializable
SqlState
22001
- case object StringDataRightTruncation01 extends SqlState with Product with Serializable
SqlState
01004
- case object SubstringError extends SqlState with Product with Serializable
SqlState
22011
- case object SuccessfulCompletion extends SqlState with Product with Serializable
SqlState
00000
- case object SyntaxError extends SqlState with Product with Serializable
SqlState
42601
- case object SyntaxErrorOrAccessRuleViolation extends SqlState with Product with Serializable
SqlState
42000
- case object TooManyArguments extends SqlState with Product with Serializable
SqlState
54023
- case object TooManyColumns extends SqlState with Product with Serializable
SqlState
54011
- case object TooManyConnections extends SqlState with Product with Serializable
SqlState
53300
- case object TooManyRows extends SqlState with Product with Serializable
SqlState
P0003
- case object TransactionIntegrityConstraintViolation extends SqlState with Product with Serializable
SqlState
40002
- case object TransactionResolutionUnknown extends SqlState with Product with Serializable
SqlState
08007
- case object TransactionRollback extends SqlState with Product with Serializable
SqlState
40000
- case object TriggerProtocolViolated extends SqlState with Product with Serializable
SqlState
39P01
- case object TriggeredActionException extends SqlState with Product with Serializable
SqlState
09000
- case object TriggeredDataChangeViolation extends SqlState with Product with Serializable
SqlState
27000
- case object TrimError extends SqlState with Product with Serializable
SqlState
22027
- case object UndefinedColumn extends SqlState with Product with Serializable
SqlState
42703
- case object UndefinedFile extends SqlState with Product with Serializable
SqlState
58P01
- case object UndefinedFunction extends SqlState with Product with Serializable
SqlState
42883
- case object UndefinedObject extends SqlState with Product with Serializable
SqlState
42704
- case object UndefinedParameter extends SqlState with Product with Serializable
SqlState
42P02
- case object UndefinedTable extends SqlState with Product with Serializable
SqlState
42P01
- case object UniqueViolation extends SqlState with Product with Serializable
SqlState
23505
- case object UnterminatedCString extends SqlState with Product with Serializable
SqlState
22024
- case object UntranslatableCharacter extends SqlState with Product with Serializable
SqlState
22P05
- case object Warning extends SqlState with Product with Serializable
SqlState
01000
- case object WindowingError extends SqlState with Product with Serializable
SqlState
42P20
- case object WithCheckOptionViolation extends SqlState with Product with Serializable
SqlState
44000
- case object WrongObjectType extends SqlState with Product with Serializable
SqlState
42809
- case object ZeroLengthCharacterString extends SqlState with Product with Serializable
SqlState
2200F