public static function throwError($tag, $message)
        {
            if(self::$error_mode === self::ERROR_EXCEPTION && !$this->_buffer_in_use)
            {
                throw new CustomTagsException('<strong>'.$tag.'</strong> '.$message.'.');
            }
            else if(self::$error_mode !== self::ERROR_SILENT)
            {
                return '<strong>['.self::$name.' Error]</strong>: '.ucfirst($tag).' Tag - '.$message.'<br />';
            }
            return '';
        }
public static function throwError($tag, $message)
        {
            if(self::$error_mode === self::ERROR_EXCEPTION && !$this->_buffer_in_use)
            {
                throw new CustomTagsException('<strong>'.$tag.'</strong> '.$message.'.');
            }
            else if(self::$error_mode !== self::ERROR_SILENT)
            {
                return '<strong>['.self::$name.' Error]</strong>: '.ucfirst($tag).' Tag - '.$message.'<br />';
            }
            return '';
        }
public static function throwError ( $ tag , $ message ) { if ( self :: $ error_mode === self :: ERROR_EXCEPTION && ! $ this -> _buffer_in_use ) { throw new CustomTagsException ( '<strong>' . $ tag . '</strong> ' . $ message . '.' ) ; } else if ( self :: $ error_mode !== self :: ERROR_SILENT ) { return '<strong>[' . self :: $ name . ' Error]</strong>: ' . ucfirst ( $ tag ) . ' Tag - ' . $ message . '<br />' ; } return '' ; }
Produces an error.
@access public
@param string $tag The name of the tag producing an error.
@param string $message The message of the error.
@return mixed|error|string Either a string or thrown error is returned dependent
on the 'missing_tags_error_mode' option.
Produces an error .