rm extraneous methods in exception
This commit is contained in:
parent
fdb6970f36
commit
c76cccbb68
1 changed files with 0 additions and 18 deletions
|
@ -6,22 +6,4 @@ use Exception;
|
|||
|
||||
class AssetNotRequestable extends Exception
|
||||
{
|
||||
private $errorMessage = 'Asset not requestable';
|
||||
|
||||
public function __construct($errorMessage = null)
|
||||
{
|
||||
$this->errorMessage = $errorMessage;
|
||||
|
||||
parent::__construct($errorMessage);
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return is_null($this->errorMessage) ? 'This asset is not requestable.' : $this->errorMessage;
|
||||
}
|
||||
|
||||
public function getTranslatedMessage()
|
||||
{
|
||||
return trans($this->errorMessage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue