Throw better Exceptions

This commit is contained in:
Phill Sparks
2011-11-15 12:35:04 +00:00
parent d643ec97dc
commit 58638216e8
23 changed files with 53 additions and 53 deletions

View File

@@ -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.");
}
}
}
}

View File

@@ -10,7 +10,7 @@ use Laravel\Session\Drivers\Sweeper;
if (Config::$items['application']['key'] === '')
{
throw new \Exception("An application key is required to use sessions.");
throw new \LogicException("An application key is required to use sessions.");
}
class Payload {
@@ -296,4 +296,4 @@ class Payload {
Cookie::put($cookie, $this->session['id'], $minutes, $path, $domain, $secure);
}
}
}