12 lines
367 B
PHP
12 lines
367 B
PHP
<?php
|
|||
|
|
declare( strict_types=1 );
|
||
|
|
|
||
|
|
namespace StreamGoals\PayPal;
|
||
|
|
|
||
|
|
/** An error talking to PayPal. getMessage() is safe to show to an admin. */
|
||
|
|
final class PayPalException extends \RuntimeException {
|
||
|
|
|
||
|
|
public function __construct( string $message, public readonly int $httpStatus = 0, public readonly string $paypalName = '' ) {
|
||
|
|
parent::__construct( $message );
|
||
|
|
}
|
||
|
|
}
|