This commit is contained in:
Marcel Pociot 2018-12-04 17:17:50 +01:00
parent 6272ea4151
commit 2eaae22ec0
1 changed files with 2 additions and 7 deletions

View File

@ -6,17 +6,12 @@ use Exception;
class InvalidApp extends Exception
{
public static function notFound(int $appId)
public static function notFound($appId)
{
return new static("Could not find app for app id `{$appId}`.");
}
public static function appIdIsNotNumeric($appId)
{
return new static("Invalid app id `{$appId}` found. An app id should be numeric.");
}
public static function valueIsRequired($name, int $appId)
public static function valueIsRequired($name, $appId)
{
return new static("{$name} is required but was empty for app id `{$appId}`.");
}