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
  • PHP

Classes

  • NApplication
  • NPresenterFactory
  • NPresenterRequest

Interfaces

  • IPresenter
  • IPresenterFactory
  • IPresenterResponse
  • IRouter

Exceptions

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