From 4eefb1e936f416333e05635b0ca2ac10166fdcec Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Sun, 9 Aug 2015 01:15:56 +0000 Subject: [PATCH] Slightly flesh out the Throwable documentation. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337353 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/predefined/exception/getcode.xml | 9 +++++++++ language/predefined/exception/getfile.xml | 9 +++++++++ language/predefined/exception/getline.xml | 9 +++++++++ language/predefined/exception/getmessage.xml | 9 +++++++++ language/predefined/exception/getprevious.xml | 9 ++++++++- language/predefined/exception/gettrace.xml | 9 +++++++++ .../predefined/exception/gettraceasstring.xml | 9 +++++++++ language/predefined/exception/tostring.xml | 9 +++++++++ language/predefined/throwable.xml | 13 ++++++++++-- language/predefined/throwable/getcode.xml | 20 +++++++++++++------ language/predefined/throwable/getfile.xml | 17 ++++++++++------ language/predefined/throwable/getline.xml | 17 ++++++++++------ language/predefined/throwable/getmessage.xml | 17 ++++++++++------ language/predefined/throwable/getprevious.xml | 18 ++++++++++++----- language/predefined/throwable/gettrace.xml | 18 +++++++++++------ .../predefined/throwable/gettraceasstring.xml | 15 +++++++++----- language/predefined/throwable/tostring.xml | 15 +++++++++----- 17 files changed, 174 insertions(+), 48 deletions(-) diff --git a/language/predefined/exception/getcode.xml b/language/predefined/exception/getcode.xml index 1665c663e7..26988e9441 100644 --- a/language/predefined/exception/getcode.xml +++ b/language/predefined/exception/getcode.xml @@ -58,6 +58,15 @@ The exception code is: 30 + + + &reftitle.seealso; + + + Throwable::getCode + + + diff --git a/language/predefined/throwable/getcode.xml b/language/predefined/throwable/getcode.xml index 2a597c9942..4d085b9f0c 100644 --- a/language/predefined/throwable/getcode.xml +++ b/language/predefined/throwable/getcode.xml @@ -4,7 +4,7 @@ Throwable::getCode - + Gets the exception code @@ -14,7 +14,7 @@ - Returns Code + Returns the error code associated with the thrown object. @@ -26,13 +26,21 @@ &reftitle.returnvalues; + Returns the exception code as integer in + Exception but possibly as other type in + Exception descendants (for example as + string in PDOException). - - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getCode + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getFile + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getLine + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getMessage + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getPrevious + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getTrace + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::getTraceAsString + + + - &reftitle.errors; - - + + &reftitle.seealso; + + + Exception::__toString + + +