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