mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-01-30 07:46:24 +00:00
Support for ordered sync/importing
- Order specified in config - Tests for ordered sync - New ErrorUpdatingModelException specifies which Model the error was thrown on
This commit is contained in:
16
src/Exceptions/ErrorUpdatingModelException.php
Normal file
16
src/Exceptions/ErrorUpdatingModelException.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace distinctm\LaravelDataSync\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class ErrorUpdatingModelException extends Exception
|
||||
{
|
||||
public function __construct(string $message = "", int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
|
||||
$this->message = "Error updating the {$message} model.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user