EXCEPTION.GETCODE(3) 1 EXCEPTION.GETCODE(3) Exception::getCode - Gets the Exception codeSYNOPSISfinalpublic mixed Exception::getCode (void )DESCRIPTIONReturns 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 PDOExcep- tion).EXAMPLESExample #1 Exception.getCode(3) example <?php try { throw new Exception("Some error message", 30); } catch(Exception $e) { echo "The exception code is: " . $e->getCode(); } ?> The above example will output something similar to: The exception code is: 30 PHP Documentation Group EXCEPTION.GETCODE(3)