Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Docblock updates in Zepto\Router
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 31, 2014
1 parent ce6b56e commit 3109cc6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,25 @@ public function not_found($callback = null)
}
}


/**
* Default callback for any 404 errors
*
* @return string
* @codeCoverageIgnore
*/
protected function default_not_found_handler()
{
return $this->generate_error_template("Page Not Found", "Couldn't find your, like, page, dude");
}

/**
* Default callback for any 500 errors. If $error is provided
* as a parameter, then the message is added to the HTML output
*
* @param string $error
* @return string
* @codeCoverageIgnore
*/
protected function default_error_handler($error = "Something fucked up big time")
{
return $this->generate_error_template("Server Error", $error);
Expand Down Expand Up @@ -420,6 +433,7 @@ protected function parse_parameters(Route $route)
* @param string $title
* @param string $body
* @return string
* @codeCoverageIgnore
*/
protected function generate_error_template($title, $body)
{
Expand Down

0 comments on commit 3109cc6

Please sign in to comment.