Throw better Exceptions
This commit is contained in:
@@ -196,8 +196,8 @@ class Str {
|
||||
return '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
|
||||
default:
|
||||
throw new \Exception("Invalid random string type [$type].");
|
||||
throw new \DomainException("Invalid random string type [$type].");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user