Merge pull request #6739 from jitendrapurohit/CRM-17205
[civicrm-core.git] / api / Exception.php
index 8629359f219541ed41e2e930bdee26f6ac64dc68..267c87fcdc0f4fc6fcac1c4e4d9fda6a274d9de6 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 /**
+ * @file
  * File for the CiviCRM APIv3 API wrapper
  *
  * @package CiviCRM_APIv3
- * @subpackage API
  *
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 
 /**
@@ -23,6 +23,8 @@ class API_Exception extends Exception {
   private $extraParams = array();
 
   /**
+   * Class constructor.
+   *
    * @param string $message
    *   The human friendly error message.
    * @param mixed $error_code
@@ -48,7 +50,8 @@ class API_Exception extends Exception {
   }
 
   /**
-   * custom string representation of object
+   * Custom string representation of object.
+   *
    * @return string
    */
   public function __toString() {
@@ -56,6 +59,8 @@ class API_Exception extends Exception {
   }
 
   /**
+   * Get extra parameters.
+   *
    * @return array
    */
   public function getExtraParams() {
@@ -63,6 +68,8 @@ class API_Exception extends Exception {
   }
 
   /**
+   * Get error codes.
+   *
    * @return array
    */
   public function getErrorCodes() {
@@ -85,6 +92,8 @@ class CiviCRM_API3_Exception extends Exception {
   private $extraParams = array();
 
   /**
+   * Class constructor.
+   *
    * @param string $message
    *   The human friendly error message.
    * @param mixed $error_code
@@ -103,7 +112,8 @@ class CiviCRM_API3_Exception extends Exception {
   }
 
   /**
-   * custom string representation of object
+   * Custom string representation of object.
+   *
    * @return string
    */
   public function __toString() {
@@ -111,6 +121,8 @@ class CiviCRM_API3_Exception extends Exception {
   }
 
   /**
+   * Get error code.
+   *
    * @return mixed
    */
   public function getErrorCode() {
@@ -118,6 +130,8 @@ class CiviCRM_API3_Exception extends Exception {
   }
 
   /**
+   * Get extra parameters.
+   *
    * @return array
    */
   public function getExtraParams() {