@status/codes
Version:
A collection of status code enums
313 lines (310 loc) • 13.9 kB
JavaScript
/**
* @see https://www.postgresql.org/docs/current/errcodes-appendix.html
*/ var $f5f2bfdbd0034081$export$c56943b7b8ffea21 = /*#__PURE__*/ function(PG) {
// Class 00 — Successful Completion,
PG["SuccessfulCompletion"] = "00000";
// Class 01 — Warning,
PG["Warning"] = "01000";
PG["DynamicResultSetsReturned"] = "0100C";
PG["ImplicitZeroBitPadding"] = "01008";
PG["NullValueEliminatedInSetFunction"] = "01003";
PG["PrivilegeNotGranted"] = "01007";
PG["PrivilegeNotRevoked"] = "01006";
PG["StringDataRightTruncationWarning"] = "01004";
PG["DeprecatedFeature"] = "01P01";
// Class 02 — No Data (this is also a warning class per the SQL standard),
PG["NoData"] = "02000";
PG["NoAdditionalDynamicResultSetsReturned"] = "02001";
// Class 03 — SQL Statement Not Yet Complete,
PG["SqlStatementNotYetComplete"] = "03000";
// Class 08 — Connection Exception,
PG["ConnectionException"] = "08000";
PG["ConnectionDoesNotExist"] = "08003";
PG["ConnectionFailure"] = "08006";
PG["SqlClientUnableToEstablishSqlConnection"] = "08001";
PG["SqlServerRejectedEstablishmentOfSqlConnection"] = "08004";
PG["TransactionResolutionUnknown"] = "08007";
PG["ProtocolViolation"] = "08P01";
// Class 09 — Triggered Action Exception,
PG["TriggeredActionException"] = "09000";
// Class 0A — Feature Not Supported,
PG["FeatureNotSupported"] = "0A000";
// Class 0B — Invalid Transaction Initiation,
PG["InvalidTransactionInitiation"] = "0B000";
// Class 0F — Locator Exception,
PG["LocatorException"] = "0F000";
PG["InvalidLocatorSpecification"] = "0F001";
// Class 0L — Invalid Grantor,
PG["InvalidGrantor"] = "0L000";
PG["InvalidGrantOperation"] = "0LP01";
// Class 0P — Invalid Role Specification,
PG["InvalidRoleSpecification"] = "0P000";
// Class 0Z — Diagnostics Exception,
PG["DiagnosticsException"] = "0Z000";
PG["StackedDiagnosticsAccessedWithoutActiveHandler"] = "0Z002";
// Class 20 — Case Not Found,
PG["CaseNotFound"] = "20000";
// Class 21 — Cardinality Violation,
PG["CardinalityViolation"] = "21000";
// Class 22 — Data Exception,
PG["DataException"] = "22000";
PG["ArraySubscriptError"] = "2202E";
PG["CharacterNotInRepertoire"] = "22021";
PG["DateTimeFieldOverflow"] = "22008";
PG["DivisionByZero"] = "22012";
PG["ErrorInAssignment"] = "22005";
PG["EscapeCharacterConflict"] = "2200B";
PG["IndicatorOverflow"] = "22022";
PG["IntervalFieldOverflow"] = "22015";
PG["InvalidArgumentForLogarithm"] = "2201E";
PG["InvalidArgumentForNTileFunction"] = "22014";
PG["InvalidArgumentForNthValueFunction"] = "22016";
PG["InvalidArgumentForPowerFunction"] = "2201F";
PG["InvalidArgumentForWidthBucketFunction"] = "2201G";
PG["InvalidCharacterValueForCast"] = "22018";
PG["InvalidDateTimeFormat"] = "22007";
PG["InvalidEscapeCharacter"] = "22019";
PG["InvalidEscapeOctet"] = "2200D";
PG["InvalidEscapeSequence"] = "22025";
PG["NonstandardUseOfEscapeCharacter"] = "22P06";
PG["InvalidIndicatorParameterValue"] = "22010";
PG["InvalidParameterValue"] = "22023";
PG["InvalidPrecedingOrFollowingSize"] = "22013";
PG["InvalidRegularExpression"] = "2201B";
PG["InvalidRowCountInLimitClause"] = "2201W";
PG["InvalidRowCountInResultOffsetClause"] = "2201X";
PG["InvalidTableSampleArgument"] = "2202H";
PG["InvalidTableSampleRepeat"] = "2202G";
PG["InvalidTimeZoneDisplacementValue"] = "22009";
PG["InvalidUseOfEscapeCharacter"] = "2200C";
PG["MostSpecificTypeMismatch"] = "2200G";
PG["NullValueNotAllowed_DataException"] = "22004";
PG["NullValueNoIndicatorParameter"] = "22002";
PG["NumericValueOutOfRange"] = "22003";
PG["SequenceGeneratorLimitExceeded"] = "2200H";
PG["StringDataLengthMismatch"] = "22026";
PG["StringDataRightTruncation_DataException"] = "22001";
PG["SubstringError"] = "22011";
PG["TrimError"] = "22027";
PG["UnterminatedCString"] = "22024";
PG["ZeroLengthCharacterString"] = "2200F";
PG["FloatingPointException"] = "22P01";
PG["InvalidTextRepresentation"] = "22P02";
PG["InvalidBinaryRepresentation"] = "22P03";
PG["BadCopyFileFormat"] = "22P04";
PG["UntranslatableCharacter"] = "22P05";
PG["NotAnXmlDocument"] = "2200L";
PG["InvalidXmlDocument"] = "2200M";
PG["InvalidXmlContent"] = "2200N";
PG["InvalidXmlComment"] = "2200S";
PG["InvalidXmlProcessingInstruction"] = "2200T";
PG["DuplicateJsonObjectKeyValue"] = "22030";
PG["InvalidArgumentForSqlJsonDateTimeFunction"] = "22031";
PG["InvalidJsonText"] = "22032";
PG["InvalidSqlJsonSubscript"] = "22033";
PG["MoreThanOneSqlJsonItem"] = "22034";
PG["NoSqlJsonItem"] = "22035";
PG["NonNumericSqlJsonItem"] = "22036";
PG["NonUniqueKeysInAJsonObject"] = "22037";
PG["SingletonSqlJsonItemRequired"] = "22038";
PG["SqlJsonArrayNotFound"] = "22039";
PG["SqlJsonMemberNotFound"] = "2203A";
PG["SqlJsonNumberNotFound"] = "2203B";
PG["SqlJsonObjectNotFound"] = "2203C";
PG["TooManyJsonArrayElements"] = "2203D";
PG["TooManyJsonObjectMembers"] = "2203E";
PG["SqlJsonScalarRequired"] = "2203F";
PG["SqlJsonItemCannotBeCastToTargetType"] = "2203G";
// Class 23 — Integrity Constraint Violation,
PG["IntegrityConstraintViolation"] = "23000";
PG["RestrictViolation"] = "23001";
PG["NotNullViolation"] = "23502";
PG["ForeignKeyViolation"] = "23503";
PG["UniqueViolation"] = "23505";
PG["CheckViolation"] = "23514";
PG["ExclusionViolation"] = "23P01";
// Class 24 — Invalid Cursor State,
PG["InvalidCursorState"] = "24000";
// Class 25 — Invalid Transaction State,
PG["InvalidTransactionState"] = "25000";
PG["ActiveSqlTransaction"] = "25001";
PG["BranchTransactionAlreadyActive"] = "25002";
PG["HeldCursorRequiresSameIsolationLevel"] = "25008";
PG["InappropriateAccessModeForBranchTransaction"] = "25003";
PG["InappropriateIsolationLevelForBranchTransaction"] = "25004";
PG["NoActiveSqlTransactionForBranchTransaction"] = "25005";
PG["ReadOnlySqlTransaction"] = "25006";
PG["SchemaAndDataStatementMixingNotSupported"] = "25007";
PG["NoActiveSqlTransaction"] = "25P01";
PG["InFailedSqlTransaction"] = "25P02";
PG["IdleInTransactionSessionTimeout"] = "25P03";
// Class 26 — Invalid SQL Statement Name,
PG["InvalidSqlStatementName"] = "26000";
// Class 27 — Triggered Data Change Violation,
PG["TriggeredDataChangeViolation"] = "27000";
// Class 28 — Invalid Authorization Specification,
PG["InvalidAuthorizationSpecification"] = "28000";
PG["InvalidPassword"] = "28P01";
// Class 2B — Dependent Privilege Descriptors Still Exist,
PG["DependentPrivilegeDescriptorsStillExist"] = "2B000";
PG["DependentObjectsStillExist"] = "2BP01";
// Class 2D — Invalid Transaction Termination,
PG["InvalidTransactionTermination"] = "2D000";
// Class 2F — SQL Routine Exception,
PG["SqlRoutineException"] = "2F000";
PG["FunctionExecutedNoReturnStatement"] = "2F005";
PG["ModifyingSqlDataNotPermitted_SqlRoutineException"] = "2F002";
PG["ProhibitedSqlStatementAttempted_SqlRoutineException"] = "2F003";
PG["ReadingSqlDataNotPermitted_SqlRoutineException"] = "2F004";
// Class 34 — Invalid Cursor Name,
PG["InvalidCursorName"] = "34000";
// Class 38 — External Routine Exception,
PG["ExternalRoutineException"] = "38000";
PG["ContainingSqlNotPermitted"] = "38001";
PG["ModifyingSqlDataNotPermitted_ExternalRoutineException"] = "38002";
PG["ProhibitedSqlStatementAttempted_ExternalRoutineException"] = "38003";
PG["ReadingSqlDataNotPermitted_ExternalRoutineException"] = "38004";
// Class 39 — External Routine Invocation Exception,
PG["ExternalRoutineInvocationException"] = "39000";
PG["InvalidSqlStateReturned"] = "39001";
PG["NullValueNotAllowed_ExternalRoutineInvocationException"] = "39004";
PG["TriggerProtocolViolated"] = "39P01";
PG["SrfProtocolViolated"] = "39P02";
PG["EventTriggerProtocolViolated"] = "39P03";
// Class 3B — SavePoint Exception,
PG["SavePointException"] = "3B000";
PG["InvalidSavePointSpecification"] = "3B001";
// Class 3D — Invalid Catalog Name,
PG["InvalidCatalogName"] = "3D000";
// Class 3F — Invalid Schema Name,
PG["InvalidSchemaName"] = "3F000";
// Class 40 — Transaction Rollback,
PG["TransactionRollback"] = "40000";
PG["TransactionIntegrityConstraintViolation"] = "40002";
PG["SerializationFailure"] = "40001";
PG["StatementCompletionUnknown"] = "40003";
PG["DeadlockDetected"] = "40P01";
// Class 42 — Syntax Error or Access Rule Violation,
PG["SyntaxErrorOrAccessRuleViolation"] = "42000";
PG["SyntaxError"] = "42601";
PG["InsufficientPrivilege"] = "42501";
PG["CannotCoerce"] = "42846";
PG["GroupingError"] = "42803";
PG["WindowingError"] = "42P20";
PG["InvalidRecursion"] = "42P19";
PG["InvalidForeignKey"] = "42830";
PG["InvalidName"] = "42602";
PG["NameTooLong"] = "42622";
PG["ReservedName"] = "42939";
PG["DatatypeMismatch"] = "42804";
PG["IndeterminateDatatype"] = "42P18";
PG["CollationMismatch"] = "42P21";
PG["IndeterminateCollation"] = "42P22";
PG["WrongObjectType"] = "42809";
PG["GeneratedAlways"] = "428C9";
PG["UndefinedColumn"] = "42703";
PG["UndefinedFunction"] = "42883";
PG["UndefinedTable"] = "42P01";
PG["UndefinedParameter"] = "42P02";
PG["UndefinedObject"] = "42704";
PG["DuplicateColumn"] = "42701";
PG["DuplicateCursor"] = "42P03";
PG["DuplicateDatabase"] = "42P04";
PG["DuplicateFunction"] = "42723";
PG["DuplicatePreparedStatement"] = "42P05";
PG["DuplicateSchema"] = "42P06";
PG["DuplicateTable"] = "42P07";
PG["DuplicateAlias"] = "42712";
PG["DuplicateObject"] = "42710";
PG["AmbiguousColumn"] = "42702";
PG["AmbiguousFunction"] = "42725";
PG["AmbiguousParameter"] = "42P08";
PG["AmbiguousAlias"] = "42P09";
PG["InvalidColumnReference"] = "42P10";
PG["InvalidColumnDefinition"] = "42611";
PG["InvalidCursorDefinition"] = "42P11";
PG["InvalidDatabaseDefinition"] = "42P12";
PG["InvalidFunctionDefinition"] = "42P13";
PG["InvalidPreparedStatementDefinition"] = "42P14";
PG["InvalidSchemaDefinition"] = "42P15";
PG["InvalidTableDefinition"] = "42P16";
PG["InvalidObjectDefinition"] = "42P17";
// Class 44 — WITH CHECK OPTION Violation,
PG["WithCheckOptionViolation"] = "44000";
// Class 53 — Insufficient Resources,
PG["InsufficientResources"] = "53000";
PG["DiskFull"] = "53100";
PG["OutOfMemory"] = "53200";
PG["TooManyConnections"] = "53300";
PG["ConfigurationLimitExceeded"] = "53400";
// Class 54 — Program Limit Exceeded,
PG["ProgramLimitExceeded"] = "54000";
PG["StatementTooComplex"] = "54001";
PG["TooManyColumns"] = "54011";
PG["TooManyArguments"] = "54023";
// Class 55 — Object Not In Prerequisite State,
PG["ObjectNotInPrerequisiteState"] = "55000";
PG["ObjectInUse"] = "55006";
PG["CantChangeRuntimeParam"] = "55P02";
PG["LockNotAvailable"] = "55P03";
PG["UnsafeNewEnumValueUsage"] = "55P04";
// Class 57 — Operator Intervention,
PG["OperatorIntervention"] = "57000";
PG["QueryCanceled"] = "57014";
PG["AdminShutdown"] = "57P01";
PG["CrashShutdown"] = "57P02";
PG["CannotConnectNow"] = "57P03";
PG["DatabaseDropped"] = "57P04";
PG["IdleSessionTimeout"] = "57P05";
// Class 58 — System Error (errors external to PostgreSQL itself),
PG["SystemError"] = "58000";
PG["IoError"] = "58030";
PG["UndefinedFile"] = "58P01";
PG["DuplicateFile"] = "58P02";
// Class 72 — Snapshot Failure,
PG["SnapshotTooOld"] = "72000";
// Class F0 — Configuration File Error,
PG["ConfigFileError"] = "F0000";
PG["LockFileExists"] = "F0001";
// Class HV — Foreign Data Wrapper Error (SQL/MED),
PG["FdwError"] = "HV000";
PG["FdwColumnNameNotFound"] = "HV005";
PG["FdwDynamicParameterValueNeeded"] = "HV002";
PG["FdwFunctionSequenceError"] = "HV010";
PG["FdwInconsistentDescriptorInformation"] = "HV021";
PG["FdwInvalidAttributeValue"] = "HV024";
PG["FdwInvalidColumnName"] = "HV007";
PG["FdwInvalidColumnNumber"] = "HV008";
PG["FdwInvalidDataType"] = "HV004";
PG["FdwInvalidDataTypeDescriptors"] = "HV006";
PG["FdwInvalidDescriptorFieldIdentifier"] = "HV091";
PG["FdwInvalidHandle"] = "HV00B";
PG["FdwInvalidOptionIndex"] = "HV00C";
PG["FdwInvalidOptionName"] = "HV00D";
PG["FdwInvalidStringLengthOrBufferLength"] = "HV090";
PG["FdwInvalidStringFormat"] = "HV00A";
PG["FdwInvalidUseOfNullPointer"] = "HV009";
PG["FdwTooManyHandles"] = "HV014";
PG["FdwOutOfMemory"] = "HV001";
PG["FdwNoSchemas"] = "HV00P";
PG["FdwOptionNameNotFound"] = "HV00J";
PG["FdwReplyHandle"] = "HV00K";
PG["FdwSchemaNotFound"] = "HV00Q";
PG["FdwTableNotFound"] = "HV00R";
PG["FdwUnableToCreateExecution"] = "HV00L";
PG["FdwUnableToCreateReply"] = "HV00M";
PG["FdwUnableToEstablishConnection"] = "HV00N";
// Class P0 — PL/pgSQL Error,
PG["PLpgSqlError"] = "P0000";
PG["RaiseException"] = "P0001";
PG["NoDataFound"] = "P0002";
PG["TooManyRows"] = "P0003";
PG["AssertFailure"] = "P0004";
// Class XX — Internal Error,
PG["InternalError"] = "XX000";
PG["DataCorrupted"] = "XX001";
PG["IndexCorrupted"] = "XX002";
return PG;
}({});
export {$f5f2bfdbd0034081$export$c56943b7b8ffea21 as PG};
//# sourceMappingURL=status-codes.62384b3f.js.map