adspace


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 schema? : Sql dba

1146


what is dbms? : Sql dba

1061


what are the advantages of sql ? : Sql dba

1142


define sql insert statement ? : Sql dba

1098


Can delete statement be rollbacked?

1054


how to use regular expression in pattern match conditions? : Sql dba

1113


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2090


Can we use distinct and group by together?

1133


What is the current version of postgresql?

1177


If a cursor is open, how can we find in a pl/sql block?

1238


what is sql server agent? : Sql dba

1182


what are all the common sql function? : Sql dba

1131


How do I remove duplicates in two columns?

1186


Is inner join faster than left join?

1276


what is collation? : Sql dba

1229