What is an Exception ? What are types of Exception ?
Answer Posted / chintu
Any ubnormal event in a program is called Exception.
In pl/ sql there are two types of exceptions they are
Userdefind Exception and predefined Exceptions.
Predefined exceptions are
CURSOR_ALREADY_OPEN
DUP_VAL_ON_INDEX
NO_DATA_FOUND
TOO_MANY_ROWS
INVALID_CURSOR
INVALID_NUMBER
LOGON_DENIED
NOT_LOGGED_ON
PROGRAM-ERROR
STORAGE_ERROR
TIMEOUT_ON_RESOURCE
VALUE_ERROR
ZERO_DIVIDE
OTHERS.
user defined exceptions are defined by raise_application_
error("error msg","error number") and
pragma_exception_init()
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
what is the command line end user interface - mysql? : Sql dba
Explain locks? : Transact sql
What are different types of queries in sql?
What is row_number () in sql?
Can a commit statement be executed as part of a trigger?
What is the sql*loader? : aql loader
Is sql a microsoft product?
what is datawarehouse? : Sql dba
How do you delete duplicates in sql query using rowid?
explain advantages of innodb over myisam. : Sql dba
What is the example of procedure?
Why triggers are used?
What is sql*loader?
Is sql a dbms?
Why do we need cursor in pl sql?