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

@@ -87,7 +87,7 @@ class View {
}
}
throw new \Exception("View [$view] does not exist.");
throw new \RuntimeException("View [$view] does not exist.");
}
/**
@@ -138,7 +138,7 @@ class View {
return static::make($view, $data);
}
throw new \Exception("Named view [$name] is not defined.");
throw new \OutOfBoundsException("Named view [$name] is not defined.");
}
/**
@@ -352,4 +352,4 @@ class View {
}
}
}
}