There are following functions which can be used from Exception
class.
getMessage()
− message of exceptiongetCode()
− code of exceptiongetFile()
− source filenamegetLine()
− source linegetTrace()
− n array of thebacktrace()
getTraceAsString()
− formated string of traceException::__toString
gives the string representation of the exception.