Throw better Exceptions
This commit is contained in:
@@ -33,8 +33,8 @@ class Factory {
|
||||
return new Redis(Cache::driver('redis'));
|
||||
|
||||
default:
|
||||
throw new \Exception("Session driver [$driver] is not supported.");
|
||||
throw new \DomainException("Session driver [$driver] is not supported.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user