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