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

Why should I use postgresql?

561


Do foreign keys improve performance?

543


What is recursive stored procedure?

598


How many types of functions are there in sql?

501


What is a schema sql?

529






Does sql use python?

559


What is the difference between functions, procedures, and packages in pl/sql?

482


what are the types of join and explain each? : Sql dba

530


What is identity column in sql server?

527


Explain how to use transactions efficiently : transact sql

527


how would concatenate strings in mysql? : Sql dba

568


What is out parameter used for eventhough return statement can also be used in pl/sql?

583


Can we call stored procedure in function?

548


Explain cursor types?

578


What is the maximum number of columns in sql table?

549