<?php
/**
+ * @file
* File for the CiviCRM APIv3 API wrapper
*
* @package CiviCRM_APIv3
*/
/**
- * This api exception returns more information than the default one. The aim it let the api consumer know better what is exactly the error without having to parse the error message.
- * If you consume an api that doesn't return an error_code or the extra data you need, consider improving the api and contribute
+ * This api exception returns more information than the default one. The aim
+ * it let the api consumer know better what is exactly the error without
+ * having to parse the error message.
+ *
+ * If you consume an api that doesn't return an error_code or the extra data
+ * you need, consider improving the api and contribute.
*/
class API_Exception extends Exception {
const UNAUTHORIZED = 'unauthorized';
private $extraParams = array();
/**
+ * Class constructor.
+ *
* @param string $message
* The human friendly error message.
* @param mixed $error_code
$this->extraParams = $extraParams + array('error_code' => $error_code);
}
- // custom string representation of object
/**
+ * custom string representation of object
* @return string
*/
public function __toString() {
self::NOT_IMPLEMENTED => 'Entity or method is not implemented',
);
}
+
}
/**
$this->extraParams = $extraParams + array('error_code' => $error_code);
}
- // custom string representation of object
/**
+ * custom string representation of object
* @return string
*/
public function __toString() {
public function getExtraParams() {
return $this->extraParams;
}
+
}