Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 6:  * @package Nette\Application
 7:  */
 8: 
 9: 
10: 
11: /**
12:  * The exception that is thrown when user attempts to terminate the current presenter or application.
13:  * This is special "silent exception" with no error message or code.
14:  * @package Nette\Application
15:  */
16: class AbortException extends Exception
17: {
18: }
19: 
20: 
21: /**
22:  * Application fatal error.
23:  * @package Nette\Application
24:  */
25: class ApplicationException extends Exception
26: {
27:     public function __construct($message = '', $code = 0, Exception $previous = NULL)
28:     {
29:         if (PHP_VERSION_ID < 50300) {
30:             $this->previous = $previous;
31:             parent::__construct($message, $code);
32:         } else {
33:             parent::__construct($message, $code, $previous);
34:         }
35:     }
36: }
37: 
38: 
39: /**
40:  * The exception that is thrown when a presenter cannot be loaded.
41:  * @package Nette\Application
42:  */
43: class InvalidPresenterException extends Exception
44: {
45: }
46: 
47: 
48: /**
49:  * Bad HTTP / presenter request exception.
50:  * @package Nette\Application
51:  */
52: class BadRequestException extends Exception
53: {
54:     /** @var int */
55:     protected $defaultCode = 404;
56: 
57: 
58:     public function __construct($message = '', $code = 0, Exception $previous = NULL)
59:     {
60:         if ($code < 200 || $code > 504) {
61:             $code = $this->defaultCode;
62:         }
63: 
64:         if (PHP_VERSION_ID < 50300) {
65:             $this->previous = $previous;
66:             parent::__construct($message, $code);
67:         } else {
68:             parent::__construct($message, $code, $previous);
69:         }
70:     }
71: 
72: }
73: 
74: 
75: /**
76:  * Forbidden request exception - access denied.
77:  * @package Nette\Application
78:  */
79: class ForbiddenRequestException extends BadRequestException
80: {
81:     /** @var int */
82:     protected $defaultCode = 403;
83: 
84: }
85: 
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0