mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-29 01:13:57 +00:00
update contact recode and clean up
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Modules\ControllerLogic\Contacts;
|
||||
|
||||
use App\Classes\Constants;
|
||||
use App\Classes\Modules\Contacts\DataTransferObjects\ContactObject;
|
||||
use App\Classes\Modules\Contacts\Exceptions\CannotCreateContactException;
|
||||
use App\Classes\Modules\Contacts\Services\CreatesContact;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -30,8 +31,8 @@ class CreateContactLogic
|
||||
return $this->createContact->execute($object, $type, $referenceId);
|
||||
|
||||
}
|
||||
catch (){
|
||||
|
||||
catch (CannotCreateContactException $exception){
|
||||
throw new InternalServerErrorException("Failed to create contact because {$exception->getMessage()}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user