first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* To be used when throwing exceptions instead of returning Response objects (future API?)
*/
class FaultResponseException extends BaseExtension
{
}
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace PhpXmlRpc\Exception;
/**
* To be used for all errors related to parsing HTTP requests and responses
*/
class HttpException extends TransportException
{
protected $statusCode;
public function __construct($message = "", $code = 0, $previous = null, $statusCode = null)
{
parent::__construct($message, $code, $previous);
$this->statusCode = $statusCode;
}
public function statusCode()
{
return $this->statusCode;
}
}
@@ -0,0 +1,7 @@
<?php
namespace PhpXmlRpc\Exception;
class NoSuchMethodException extends ServerException
{
}
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* Base exception for errors while parsing xml-rpc requests/responses: charset issue, xml issues, xml-rpc issues
*/
class ParsingException extends BaseExtension
{
}
@@ -0,0 +1,4 @@
<?php
// deprecated. Kept around for BC
class_alias('PhpXmlRpc\Exception', 'PhpXmlRpc\Exception\PhpXmlRpcException');
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* Base exception for errors thrown by the server while trying to handle the requests, such as errors with the dispatch map
*/
class ServerException extends BaseExtension
{
}
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* Exception thrown when an object is in such a state that it can not fulfill execution of a method
*/
class StateErrorException extends BaseExtension
{
}
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* To be used for all errors related to the transport, which are not related to specifically to HTTP. Eg: can not open socket
*/
class TransportException extends BaseExtension
{
}
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* Exception thrown when an argument passed to a function or method has an unsupported type
*/
class TypeErrorException extends BaseExtension
{
}
@@ -0,0 +1,12 @@
<?php
namespace PhpXmlRpc\Exception;
use PhpXmlRpc\Exception as BaseExtension;
/**
* Exception thrown when an argument passed to a function or method has an unsupported value (but its type is ok)
*/
class ValueErrorException extends BaseExtension
{
}
+7
View File
@@ -0,0 +1,7 @@
<?php
namespace PhpXmlRpc\Exception;
class XmlException extends ParsingException
{
}
@@ -0,0 +1,7 @@
<?php
namespace PhpXmlRpc\Exception;
class XmlRpcException extends ParsingException
{
}