21 lines
444 B
PHP
21 lines
444 B
PHP
|
<?php
|
||
|
|
||
|
namespace Yansongda\Pay\Exceptions;
|
||
|
|
||
|
class GatewayException extends Exception
|
||
|
{
|
||
|
/**
|
||
|
* Bootstrap.
|
||
|
*
|
||
|
* @author yansongda <me@yansonga.cn>
|
||
|
*
|
||
|
* @param string $message
|
||
|
* @param array|string $raw
|
||
|
* @param int $code
|
||
|
*/
|
||
|
public function __construct($message, $raw = [], $code = self::ERROR_GATEWAY)
|
||
|
{
|
||
|
parent::__construct('ERROR_GATEWAY: '.$message, $raw, $code);
|
||
|
}
|
||
|
}
|