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


Please Help Members By Posting Answers For Below Questions

What is basic structure of pl sql?

690


What is procedure and function in sql?

748


How does one use sql*loader to load images, sound clips and documents? : aql loader

886


How do you identify a primary key?

815


What is the purpose of cursors in pl/sql?

803






Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

848


What are the different ways to optimize a sql query?

684


What is db journal file?

690


How to know the last executed procedure?

811


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

702


What is primary and foreign key?

809


How do you modify a trigger?

695


What is Collation Sensitivity ? What are the various type ?

699


What is sql table?

690


What is the difference between inner join and left join?

738