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

what are the different type of sql's statements ? : Sql dba

1 Answers  


How many indexes can be created on a table in sql?

1 Answers  


define a variable representing the expression used to calculate on emps total annual remuneration.use the variable in a statement which finds all emps who can earn 30000 a year or more.

5 Answers  


package specification-3 procedures package body-4 procedures how can i write for other procedure in package body

2 Answers   Reliance,


Explain some predefined exceptions.

1 Answers  


What are the different operators available in sql?

1 Answers  


Write a sql query to convert all character to uppercase after hypen.

1 Answers  


What is oracle sql called?

1 Answers  


How to assign sql query results to pl sql variables?

1 Answers  


Is it possible to include an insert statement on the same table to which the trigger is assigned?

1 Answers  


What is an exception in PL/SQL? What are the two types of exceptions?

1 Answers  


What are reports usually used for?

1 Answers  


Categories