SAP ABAP Class CX_SQL_EXCEPTION (Exception Class for SQL Error)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DB-DBI (Application Component) DB-Independent Database Interface
     SDB_ADBC (Package) ABAP Database Call Interface (Dynamic SQL)
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CX_STATIC_CHECK Exceptions with Static and Dynamic Check of RAISING Clause 20001208
Properties
Class CX_SQL_EXCEPTION  
Short Description Exception Class for SQL Error    
Super Class CX_STATIC_CHECK Exceptions with Static and Dynamic Check of RAISING Clause 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 40  Exception Class 
Package SDB_ADBC   ABAP Database Call Interface (Dynamic SQL) 
Created 20001208   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CX_SQL_EXCEPTION has no interface implemented.
Friends
Class CX_SQL_EXCEPTION has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CONNECTION_CLOSED Instance attribute Public Type reference (TYPE) FLAG Database connection closed 20030702
2 CONNECTION_OPEN_ERROR Instance attribute Public Type reference (TYPE) FLAG Error when opening the DB connection 20120601
3 CX_SQL_EXCEPTION Constant Public Type reference (TYPE) SOTR_CONC '44CEFA5BE0414DACE10000000A1146E5' 20060801
4 DBOBJECT_EXISTS Instance attribute Public Type reference (TYPE) FLAG Database Object To Be Created Already Exists 20001208
5 DBOBJECT_NOT_EXISTS Instance attribute Public Type reference (TYPE) FLAG This Database Object Does Not Exist 20001208
6 DB_ERROR Instance attribute Public Type reference (TYPE) FLAG SQL Error Occurred 20001219
7 DUPLICATE_KEY Instance attribute Public Type reference (TYPE) FLAG Uniqueness of Key Can No Longer Be Guaranteed 20001208
8 EXTERNAL_ERROR Instance attribute Public Type reference (TYPE) FLAG Incorrect Call Parameter 20100625
9 INTERNAL_ERROR Instance attribute Public Type reference (TYPE) SY-SUBRC An internal error has occurred 20001219
10 INVALID_CURSOR Instance attribute Public Type reference (TYPE) FLAG Invalid Cursor Entered 20010531
11 NO_MORE_MEMORY Instance attribute Public Type reference (TYPE) FLAG Insufficient memory available 20120524
12 SQL_CODE Instance attribute Public Type reference (TYPE) I SQL Error Code 20001208
13 SQL_MESSAGE Instance attribute Public Type reference (TYPE) DBSQLMSG Error Text 20001208
14 UNKNOWN_CONNECTION Instance attribute Public Type reference (TYPE) FLAG Unknown Connection Name 20010531
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor Constructor 20001208
Events
Class CX_SQL_EXCEPTION has no event.
Types
Class CX_SQL_EXCEPTION has no local type.
Method Signatures

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONNECTION_CLOSED Call by reference Type reference (TYPE) FLAG 20030702
2 Importing CONNECTION_OPEN_ERROR Call by reference Type reference (TYPE) FLAG 20120601
3 Importing DBOBJECT_EXISTS Call by reference Type reference (TYPE) FLAG 20001208
4 Importing DBOBJECT_NOT_EXISTS Call by reference Type reference (TYPE) FLAG 20001208
5 Importing DB_ERROR Call by reference Type reference (TYPE) FLAG 20001219
6 Importing DUPLICATE_KEY Call by reference Type reference (TYPE) FLAG 20001208
7 Importing EXTERNAL_ERROR Call by reference Type reference (TYPE) FLAG 20100625
8 Importing INTERNAL_ERROR Call by reference Type reference (TYPE) SY-SUBRC 20001219
9 Importing INVALID_CURSOR Call by reference Type reference (TYPE) FLAG 20010531
10 Importing NO_MORE_MEMORY Call by reference Type reference (TYPE) FLAG 20120524
11 Importing PREVIOUS Call by reference Attribute reference (LIKE) PREVIOUS 20001208
12 Importing SQL_CODE Call by reference Type reference (TYPE) I 20001208
13 Importing SQL_MESSAGE Call by reference Type reference (TYPE) DBSQLMSG 20001208
14 Importing TEXTID Call by reference Attribute reference (LIKE) TEXTID 20001208
15 Importing UNKNOWN_CONNECTION Call by reference Type reference (TYPE) FLAG 20010531

Method CONSTRUCTOR on class CX_SQL_EXCEPTION has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 610