コード例 #1
0
ファイル: APIException.php プロジェクト: liubo2055/gdapi-php
{
}
class BadRequestException extends APIException
{
}
class UnauthorizedException extends APIException
{
}
class ForbiddenException extends APIException
{
}
class NotFoundException extends APIException
{
}
class MethodException extends APIException
{
}
class NotAcceptableException extends APIException
{
}
class ConflictException extends APIException
{
}
class ServiceException extends APIException
{
}
class UnavailableException extends APIException
{
}
APIException::$status_map = array('schema' => '\\GDAPI\\SchemaException', 'client' => '\\GDAPI\\ClientException', 'request' => '\\GDAPI\\HTTPRequestException', 'parse' => '\\GDAPI\\ParseException', 'type' => '\\GDAPI\\UnknownTypeException', 400 => '\\GDAPI\\BadRequestException', 401 => '\\GDAPI\\UnauthorizedException', 403 => '\\GDAPI\\ForbiddenException', 404 => '\\GDAPI\\NotFoundException', 405 => '\\GDAPI\\MethodException', 406 => '\\GDAPI\\NotAcceptableException', 409 => '\\GDAPI\\ConflictException', 500 => '\\GDAPI\\ServiceException', 503 => '\\GDAPI\\UnavailableException');