Class: Nanodicom_Exception

Source Location: /nanodicom/exception.php

Class Overview [line 25]

Exception
   |
   --Nanodicom_Exception

Nanodicom_Extension class.

Author(s):

Version:

  • 1.1

Copyright:

  • (c) 2010

Variables

Constants

Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited Constants

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )


Class Details

Nanodicom_Extension class.

Own class for exception. Many lines of code taken from the {http://www.kohanaframework.org Kohana framework}

Tags:

[ Top ]


Class Variables


Class Methods

__construct

void __construct( string $message, [ $variables = NULL], [integer $code = 0])

[line 38]

Creates a new translated exception.

throw new Nanodicom_Exception('Something went terrible wrong, :user', array(':user' => $user));

Tags:

  • access - public

Overrides Exception::constructor __construct ( [$message = ], [$code = ], [$previous = ] ) (parent method not documented)

Parameters:

  • string $message - error message
  • array $variables - translation variables
  • integer $code - the exception code

[ Top ]

__toString

string __toString( )

[line 56]

Magic object-to-string method.

Get a single line of text representing the exception: echo $exception; Error [ Code ]: Message

Tags:

  • access - public

Overrides Exception::__toString ( ) (parent method not documented)

Parameters:

[ Top ]


Class Constants


Documentation generated on Thu, 09 Dec 2010 16:19:33 -0800 by phpDocumentor 1.4.3