Improved template handling with exceptions
The Page class is now responsible for executing the subpage template rather than the index file. Template processing has been improved with exceptions to catch 404s, or any other template exception, which will abort the current page and display an error document instead.
This commit is contained in:
@@ -10,4 +10,8 @@ class HandBrakeCluster_Exception_ResultCountMismatch extends Exception {};
|
||||
|
||||
class HandBrakeCluster_Exception_UnknownSetting extends Exception {};
|
||||
|
||||
class HandBrakeCluster_Exception_TemplateException extends Exception {};
|
||||
class HandBrakeCluster_Exception_Unauthorized extends HandBrakeCluster_Exception_TemplateException {};
|
||||
class HandBrakeCluster_Exception_FileNotFound extends HandBrakeCluster_Exception_TemplateException {};
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user