What is an Exception ? What are types of Exception ?

Answers were Sorted based on User's Feedback



What is an Exception ? What are types of Exception ?..

Answer / tulsi

Exception is the error handling part of PL/SQL block. The
types are Predefined and user_defined. Some of Predefined
execptions 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.

Is This Answer Correct ?    6 Yes 0 No

What is an Exception ? What are types of Exception ?..

Answer / 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

More SQL PLSQL Interview Questions

Can 2 queries be executed simultaneously in a distributed database system?

0 Answers  


What is pl sql quora?

0 Answers  


Explain how procedures and functions are called in a PL/SQL block ?

3 Answers  


What is a table in a database?

0 Answers  


how to enter numeric values as hex numbers? : Sql dba

0 Answers  


Explain how to use transactions efficiently : transact sql

0 Answers  


Give the structure of the function ?

2 Answers  


How many types of normalization are there?

0 Answers  


What is a mutating table

5 Answers   TCS, Tech Mahindra,


How to move files from one directory to another in pl sql?

0 Answers  


Define tables and fields in a database

0 Answers  


Explain what is sql*plus?

0 Answers  


Categories