123456789101112131415 |
- <?php
- class OceanException extends RuntimeException {
- private $errorCode;
- function __construct($message = null, $code = 0) {
- parent::__construct ( $message, $code );
- }
- public function setErrorCode($errorCode) {
- $this->errorCode = $errorCode;
- }
- public function getErrorCode() {
- return $this->errorCode;
- }
- }
- ?>
|