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

  • ArrayHash
  • ArrayList
  • Callback
  • DateTime53
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • StaticClassException
  • UnknownImageFileException
  • 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
 11:  */
 12: 
 13: 
 14: 
 15: /**
 16:  * The exception that is thrown when the value of an argument is
 17:  * outside the allowable range of values as defined by the invoked method.
 18:  * @package Nette
 19:  */
 20: class ArgumentOutOfRangeException extends InvalidArgumentException
 21: {
 22: }
 23: 
 24: 
 25: 
 26: /**
 27:  * The exception that is thrown when a method call is invalid for the object's
 28:  * current state, method has been invoked at an illegal or inappropriate time.
 29:  * @package Nette
 30:  */
 31: class InvalidStateException extends RuntimeException
 32: {
 33:     public function __construct($message = '', $code = 0, Exception $previous = NULL)
 34:     {
 35:         if (PHP_VERSION_ID < 50300) {
 36:             $this->previous = $previous;
 37:             parent::__construct($message, $code);
 38:         } else {
 39:             parent::__construct($message, $code, $previous);
 40:         }
 41:     }
 42: }
 43: 
 44: 
 45: 
 46: /**
 47:  * The exception that is thrown when a requested method or operation is not implemented.
 48:  * @package Nette
 49:  */
 50: class NotImplementedException extends LogicException
 51: {
 52: }
 53: 
 54: 
 55: 
 56: /**
 57:  * The exception that is thrown when an invoked method is not supported. For scenarios where
 58:  * it is sometimes possible to perform the requested operation, see InvalidStateException.
 59:  * @package Nette
 60:  */
 61: class NotSupportedException extends LogicException
 62: {
 63: }
 64: 
 65: 
 66: 
 67: /**
 68:  * The exception that is thrown when a requested method or operation is deprecated.
 69:  * @package Nette
 70:  */
 71: class DeprecatedException extends NotSupportedException
 72: {
 73: }
 74: 
 75: 
 76: 
 77: /**
 78:  * The exception that is thrown when accessing a class member (property or method) fails.
 79:  * @package Nette
 80:  */
 81: class MemberAccessException extends LogicException
 82: {
 83: }
 84: 
 85: 
 86: 
 87: /**
 88:  * The exception that is thrown when an I/O error occurs.
 89:  * @package Nette
 90:  */
 91: class IOException extends RuntimeException
 92: {
 93: }
 94: 
 95: 
 96: 
 97: /**
 98:  * The exception that is thrown when accessing a file that does not exist on disk.
 99:  * @package Nette
100:  */
101: class FileNotFoundException extends IOException
102: {
103: }
104: 
105: 
106: 
107: /**
108:  * The exception that is thrown when part of a file or directory cannot be found.
109:  * @package Nette
110:  */
111: class DirectoryNotFoundException extends IOException
112: {
113: }
114: 
115: 
116: /**
117:  * The exception that is thrown when static class is instantiated.
118:  * @package Nette
119:  */
120: class StaticClassException extends LogicException
121: {
122: }
123: 
124: 
125: 
126: /**
127:  * The exception that indicates errors that can not be recovered from. Execution of
128:  * the script should be halted.
129:  * @package Nette
130:  */
131: class FatalErrorException extends Exception // ErrorException is corrupted in PHP < 5.3
132: {
133:     private $severity;
134: 
135:     public function __construct($message, $code, $severity, $file, $line, $context, Exception $previous = NULL)
136:     {
137:         if (PHP_VERSION_ID < 50300) {
138:             $this->previous = $previous;
139:             parent::__construct($message, $code);
140:         } else {
141:             parent::__construct($message, $code, $previous);
142:         }
143:         $this->severity = $severity;
144:         $this->file = $file;
145:         $this->line = $line;
146:         $this->context = $context;
147:     }
148: 
149:     public function getSeverity()
150:     {
151:         return $this->severity;
152:     }
153: 
154: }
155: 
Nette Framework 2.0.7 (for PHP 5.2, un-prefixed) API API documentation generated by ApiGen 2.8.0