ExamVeda
Login
Home
This question belongs to PHP Object Oriented Concept
Object Oriented Concept
?

Which one of the following methods in the exception class, is used to get a nested exception object?

Answer & Solution
Correct Answer: Option A
getCode() – Get the code integer that was passed to the constructor. getFile() – Get the file in which the exception was generated. getLine() – Get the line number at which the exception was generated.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.