XRL  latest
Simple XML-RPC Library (both client and server)
ImplementationDefinedErrorException.php
1 <?php
2 /*
3  * This file is part of XRL, a simple XML-RPC Library for PHP.
4  *
5  * Copyright (c) 2015, XRL Team. All rights reserved.
6  * XRL is licensed under the 3-clause BSD License.
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
12 namespace fpoirotte\XRL\Faults;
13 
22 {
23  public function __construct($code = -32000, $message = 'implementation-defined error', \Exception $previous = null)
24  {
25  if ($code < -32099 || $code > -32000) {
26  throw new \InvalidArgumentException('Invalid error code');
27  }
28 
29  parent::__construct($message, $code, $previous);
30  }
31 }
An exception that is used to represent XML-RPC errors.
Definition: Exception.php:21
An interoperable fault representing an implementation-defined error.
Abstract definition of an interoperable fault.