Exception::getCodeGets the Exception code Description
final public mixed Exception::getCode
( void
)
Returns the Exception code. ParametersThis function has no parameters. Return ValuesReturns the exception code as integer in Exception but possibly as other type in Exception descendants (for example as string in PDOException). Examples
Example #1 Exception::getCode example
<?php The above example will output something similar to: The exception code is: 30 See Also
|