Vidyalelo
PHP · Q12

Exceptions And Error Handling

Programming · PHP · question 12

Q12

How many methods are available for the exception class?

A.
5
B.
6
C.
7
Answer
D.
8

Answer: Option C

Solution

Answer: Option C
Solution:
The seven methods are: getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString().