for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ParkwayProjects\PayWithBank3D\Exceptions;
use Exception;
class Exceptions extends Exception
{
private static $_errors = [
'format.null_mode' => 'The specified mode is null. Please use either live or staging',
'format.invalid_currency_code' => 'The specified currency code is invalid. Please use ISO 4217 notation (e.g. USD).',
'format.unsupported_currency' => 'The specified currency code is not currently supported.',
'format.unsupported_type' => 'The Specified Types Is Currently Not Supported',
'format.is_null' => 'The Access Token can not be null. Please pass it to the constructor',
];
public static function create($message)
return new static(self::$_errors[$message]);
}