Skip to content

Commit 3c1549b

Browse files
committed
Exceptions Work in progress
1 parent 20b2e67 commit 3c1549b

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/Exceptions/InvalidCallableException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace RingleSoft\LaravelSelectable\Exceptions;
44

5-
use Exception;
6-
use JetBrains\PhpStorm\Pure;
75
use Throwable;
86

9-
class InvalidCallableException extends Exception
7+
class InvalidCallableException extends LaravelSelectableException
108
{
119
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
1210
{
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace RingleSoft\LaravelSelectable\Exceptions;
4+
5+
use Exception;
6+
use Throwable;
7+
8+
class LaravelSelectableException extends Exception
9+
{
10+
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
11+
{
12+
$message = "Laravel Selectable: " . $message;
13+
parent::__construct($message, $code, $previous);
14+
}
15+
16+
}

0 commit comments

Comments
 (0)