Examveda
Examveda

How many methods are available for the exception class?

A. 5

B. 6

C. 7

D. 8

Answer: Option C

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Exceptions And Error Handling

Join The Discussion

Related Questions on Exceptions and Error Handling