Skip to content

Commit

Permalink
Add IDE-helper Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Jul 8, 2018
1 parent 2e3387a commit 5adbb05
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/include/ide-helper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
/**
* Author: Twosee <twose@qq.com>
* Date: 2018/7/8 下午3:00
*/

namespace Swlib\Http\Exception {

use Swlib\Saber\Request;
use Swlib\Saber\Response;

class TransferException extends \RuntimeException
{
}

/**
* Class RequestException
* @package Swlib\Http\Exception
* @method Request getRequest()
* @method Response|null getResponse()
*/
class RequestException extends TransferException
{
}

class BadResponseException extends RequestException
{
}

class ClientException extends RequestException
{
}

class ConnectException extends RequestException
{
}

class ServerException extends RequestException
{
}

class TooManyRedirectsException extends RequestException
{
}

}

0 comments on commit 5adbb05

Please sign in to comment.