mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-01-26 11:44:11 +00:00
Refactor to custom exceptions & minor code style fixes
This commit is contained in:
16
src/Exceptions/NoRecordsInvalidJSONException.php
Normal file
16
src/Exceptions/NoRecordsInvalidJSONException.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace distinctm\LaravelDataSync\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class NoRecordsInvalidJSONException extends Exception
|
||||
{
|
||||
public function __construct(string $message = "", int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
|
||||
$this->message = "No records or invalid JSON for {$message} model.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user