public static function findMessage($code)
    {
        $message = null;

        if (array_key_exists($code, self::$errorList)) {
            $message = self::$errorList[$code];
        }

        return $message;
    }
public static function findMessage($code)
    {
        $message = null;

        if (array_key_exists($code, self::$errorList)) {
            $message = self::$errorList[$code];
        }

        return $message;
    }
public static function findMessage ( $ code ) { $ message = null ; if ( array_key_exists ( $ code , self :: $ errorList ) ) { $ message = self :: $ errorList [ $ code ] ; } return $ message ; }
Find the error message for a given error code

@param string $code
@return string|null
Find the error message for a given error code