public static function getErrorType($error)
    {
        // Check for type of error
        switch ($error) {
            case E_ERROR:                            // 1
                // Fatal run-time errors. These indicate errors that can not be recovered from,
                // such as a memory allocation problem. Execution of the script is halted.
            case E_USER_ERROR:                       // 256
                // User-generated error message. This is like an E_ERROR, except it is generated in
                // PHP code by using the PHP function trigger_error() (since PHP 4).
                $type = 'ERROR';
                break;

            case E_WARNING:                          // 2
                // Run-time warnings (non-fatal errors). Execution of the script is not halted.
            case E_USER_WARNING:                     // 512
                // User-generated warning message. This is like an E_WARNING, except it is generated in
                // PHP code by using the PHP function trigger_error() (since PHP 4).
                $type = 'WARNING';
                break;

            case E_PARSE:                            // 4
                // Compile-time parse errors. Parse errors should only be generated by the parser.
                $type = 'PARSE';
                break;

            case E_NOTICE:                           // 8
                // Run-time notices. Indicate that the script encountered something that could indicate an
                // error, but could also happen in the normal course of running a script.
            case E_USER_NOTICE:                      // 1024
                // User-generated notice message. This is like an E_NOTICE, except it is generated in PHP
                // code by using the PHP function trigger_error() (since PHP 4).
                $type = 'NOTICE';
                break;

            case E_CORE_ERROR:                       // 16
                // Fatal errors that occur during PHP's initial startup. This is like an E_ERROR, except it
                // is generated by the core of PHP (since PHP 4).
                $type = 'CORE-ERROR';
                break;

            case E_CORE_WARNING:                     // 32
                // Warnings (non-fatal errors) that occur during PHP's initial startup. This is like an
                // E_WARNING, except it is generated by the core of PHP (since PHP 4).
                $type = 'CORE-WARNING';
                break;

            case E_COMPILE_ERROR:                    // 64
                // Fatal compile-time errors. This is like an E_ERROR, except it is generated by the Zend
                // Scripting Engine (since PHP 4).
                $type = 'COMPILE-ERROR';
                break;

            case E_COMPILE_WARNING:                  // 128
                // Compile-time warnings (non-fatal errors). This is like an E_WARNING, except it is generated
                // by the Zend Scripting Engine.
                $type = 'COMPILE-WARNING';
                break;

            case E_STRICT:                           // 2048
                //case E_USER_STRICT:                // ?!?
                // Enable to have PHP suggest changes to your code which will ensure the best interoperability
                // and forward compatibility of your code (since PHP 5)
                $type = 'STRICT';
                break;

            case E_RECOVERABLE_ERROR:                // 4096
                // Catchable fatal error. It indicates that a probably dangerous error occurred, but did not
                // leave the Engine in an unstable state. If the error is not caught by a user defined getMetaComponents
                // (see also set_error_handler()), the application aborts as it was an E_ERROR (since PHP 5.2.0).
                $type = 'RECOVERABLE';
                break;

            case E_DEPRECATED:                      // 8192
                // Run-time notices. Enable this to receive warnings about code that will not work in future versions.
            case E_USER_DEPRECATED:                 // 16384
                // User-generated warning message. This is like an E_DEPRECATED, except it is generated in PHP code
                // by using the PHP function trigger_error().
                $type = 'DEPRECATED';
                break;

            case E_USER_EXCEPTION:                   // 23
            case E_USER_CORE_EXCEPTION:              // 235
                // Doozr custom Error-Type - Error of type exception.
                $type = 'EXCEPTION';
                break;

            case E_USER_CORE_FATAL_EXCEPTION:        // 23523
                // Doozr custom Error-Type - Fatal-Error of type exception.
                $type = 'EXCEPTION';
                break;

            default:
                // nothing matched?
                $type = 'UNCLASSIFIED';
                break;
        }

        return $type;
    }