Throw the correct exceptions in View and Request, follow up on 7f28b57b2ecb3e4cfac1e7b44860bdc8e9b145ff
This commit is contained in:
parent
e28395b088
commit
1877dd7a9b
|
@ -446,7 +446,7 @@ class Kohana_Request {
|
|||
}
|
||||
}
|
||||
|
||||
throw new Request_Exception('Unable to find a route to handle :uri', array(':uri' => $uri));
|
||||
throw new Kohana_Request_Exception('Unable to find a route to handle :uri', array(':uri' => $uri));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -152,7 +152,7 @@ class Kohana_View {
|
|||
{
|
||||
if (($path = Kohana::find_file('views', $file)) === FALSE)
|
||||
{
|
||||
throw new View_Exception('The requested view :file could not be found', array(
|
||||
throw new Kohana_View_Exception('The requested view :file could not be found', array(
|
||||
':file' => $file,
|
||||
));
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ class Kohana_View {
|
|||
{
|
||||
if (empty($this->_file))
|
||||
{
|
||||
throw new View_Exception('You must set the file to use within your view before rendering');
|
||||
throw new Kohana_View_Exception('You must set the file to use within your view before rendering');
|
||||
}
|
||||
|
||||
// Combine global and local data. Global variables with the same name
|
||||
|
|
Loading…
Reference in a new issue