AloFramework Handlers 2.0 API
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • AloFramework
    • Handlers
      • Config
      • Output
        • Styles
  • PHP

Classes

  • AbstractHandler
  • Error
  • ErrorHandler
  • ExceptionHandler
  • ShutdownHandler

Class Error

Object representation of an error

ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable
Extended by AloFramework\Handlers\Error
Namespace: AloFramework\Handlers
Author: Art a.molcanovas@gmail.com
Since:

1.4 __get() added
1.3 shouldBeReported(), $map
1.2


Located at class/Error.php

Methods summary

public
# __construct( integer|array $typeOrData, string $message = null, string $file = null, integer $line = null )

Constructor

Constructor

Parameters

$typeOrData
The error code or array of error_get_last()
$message
The error message
$file
The error file
$line
The error line

Author

Art a.molcanovas@gmail.com

Overrides

ArrayObject::__construct
public static boolean
# shouldBeReported( integer $errcode, integer $reportingSettings = null )

Checks if an error should be reported

Checks if an error should be reported

Parameters

$errcode
The error code
$reportingSettings

You can provide your own reporting settings. If omitted, ALO_HANDLERS_ERROR_LEVEL will be used.

Returns

boolean

Author

Art a.molcanovas@gmail.com

Since

1.3
public mixed
# __get( string $var )

Alias of offsetGet()

Alias of offsetGet()

Parameters

$var
Variable to get

Returns

mixed

Author

Art a.molcanovas@gmail.com
public boolean
# isEmpty( )

Checks if the error is actually empty

Checks if the error is actually empty

Returns

boolean

Author

Art a.molcanovas@gmail.com
public integer
# getType( )

Returns the error code

Returns the error code

Returns

integer

Author

Art a.molcanovas@gmail.com
public string
# getMessage( )

Returns the error message

Returns the error message

Returns

string

Author

Art a.molcanovas@gmail.com
public string
# getFile( )

Returns the error file

Returns the error file

Returns

string

Author

Art a.molcanovas@gmail.com
public integer
# getLine( )

Returns the error line

Returns the error line

Returns

integer

Author

Art a.molcanovas@gmail.com
public boolean
# equals( AloFramework\Handlers\Error $e )

Checks if the two errors are equal

Checks if the two errors are equal

Parameters

$e
The other error

Returns

boolean

Author

Art a.molcanovas@gmail.com
public string
# __toString( )

Returns a string representation of $this

Returns a string representation of $this

Returns

string

Author

Art a.molcanovas@gmail.com

Methods inherited from ArrayObject

append(), asort(), count(), exchangeArray(), getArrayCopy(), getFlags(), getIterator(), getIteratorClass(), ksort(), natcasesort(), natsort(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), serialize(), setFlags(), setIteratorClass(), uasort(), uksort(), unserialize()

Constants summary

Constants inherited from ArrayObject

ARRAY_AS_PROPS, STD_PROP_LIST

Properties summary

public static array $map

Error code/label map

Error code/label map

Since

1.3
# [E_NOTICE => 'NOTICE', E_USER_NOTICE => 'USER NOTICE', E_CORE_ERROR => 'CORE ERROR', E_ERROR => 'ERROR', E_USER_ERROR => 'USER ERROR', E_COMPILE_ERROR => 'COMPILE ERROR', E_RECOVERABLE_ERROR => 'RECOVERABLE ERROR', E_DEPRECATED => 'DEPRECATED', E_USER_DEPRECATED => 'USER DEPRECATED', E_WARNING => 'WARNING', E_USER_WARNING => 'USER WARNING', E_STRICT => 'STRICT', E_CORE_WARNING => 'CORE WARNING']

Magic properties

public integer $line

Error line

public string $file

Error file

public string $message

Error message

public integer $type

Error code

AloFramework Handlers 2.0 API API documentation generated by ApiGen