Skip to content

Commit

Permalink
Add import exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeStatik committed Aug 25, 2022
1 parent f9c2dc6 commit 1eba48d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Exceptions/AnswerNotImportedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Statikbe\Surveyhero\Exceptions;

class AnswerNotImportedException extends \Exception
{
public int $answerId;

public static function create(int $answerId, string $message): self
{
$ex = new self($message);
$ex->answerId = $answerId;

return $ex;
}
}

0 comments on commit 1eba48d

Please sign in to comment.