diff --git a/src/ClientFactory.php b/src/ClientFactory.php index 9194e4a..44297d0 100644 --- a/src/ClientFactory.php +++ b/src/ClientFactory.php @@ -4,6 +4,7 @@ namespace Denpa\Bitcoin; +use InvalidArgumentException; use Denpa\Bitcoin\LaravelClient as BitcoinClient; class ClientFactory @@ -73,7 +74,9 @@ public function getConfig(string $name = 'default') : array } if (! array_key_exists($name, $this->config)) { - throw new \Exception("Could not find client configuration [$name]"); + throw new InvalidArgumentException( + "Could not find client configuration [$name]" + ); } return $this->withDefaults($this->config[$name]);