HEX
Server: Apache
System: Linux wp02.tdr-lab.com 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User: kusanagi (1001)
PHP: 7.4.23
Disabled: NONE
Upload Files
File: //usr/include/hphp/parser/parse-time-fatal-exception.h
#ifndef incl_HPHP_PARSE_TIME_FATAL_EXCEPTION_H
#define incl_HPHP_PARSE_TIME_FATAL_EXCEPTION_H

#include "hphp/util/exception.h"

namespace HPHP {
/////////////////////////////////////////////////////////////////////////////

struct ParseTimeFatalException : Exception {
  ParseTimeFatalException(const std::string& file, int line,
    ATTRIBUTE_PRINTF_STRING const char* msg, ...) ATTRIBUTE_PRINTF(4,5)
  : m_file(file), m_line(line), m_parseFatal(true) {
    va_list ap; va_start(ap, msg); format(msg, ap); va_end(ap);
  }

  EXCEPTION_COMMON_IMPL(ParseTimeFatalException);

  void setParseFatal(bool b = true) { m_parseFatal = b; }

  std::string m_file;
  int m_line;
  bool m_parseFatal;
};

/////////////////////////////////////////////////////////////////////////////
} // namespace HPHP
#endif // incl_HPHP_PARSE_TIME_FATAL_EXCEPTION_H