GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
parse_exception Class Reference
Inheritance diagram for parse_exception:
Collaboration diagram for parse_exception:

Public Member Functions

 parse_exception (const parse_exception &)=default
 
 parse_exception (const std::string &message, const std::string &fcn_name="", const std::string &file_name="", int line=-1, int column=-1)
 
 ~parse_exception (void)=default
 
int column (void) const
 
std::string fcn_name (void) const
 
std::string file_name (void) const
 
int line (void) const
 
std::string message (void) const
 
parse_exceptionoperator= (const parse_exception &)=default
 
const char * what (void) const noexcept
 

Private Attributes

int m_column
 
std::string m_fcn_name
 
std::string m_file_name
 
int m_line
 
std::string m_message
 

Detailed Description

Definition at line 6460 of file oct-parse.cc.

Constructor & Destructor Documentation

◆ parse_exception() [1/2]

parse_exception::parse_exception ( const std::string &  message,
const std::string &  fcn_name = "",
const std::string &  file_name = "",
int  line = -1,
int  column = -1 
)
inline

Definition at line 6464 of file oct-parse.cc.

◆ parse_exception() [2/2]

parse_exception::parse_exception ( const parse_exception )
default

◆ ~parse_exception()

parse_exception::~parse_exception ( void  )
default

Member Function Documentation

◆ column()

int parse_exception::column ( void  ) const
inline

Definition at line 6488 of file oct-parse.cc.

References m_column.

Referenced by octave::base_parser::bison_error().

◆ fcn_name()

std::string parse_exception::fcn_name ( void  ) const
inline

Definition at line 6484 of file oct-parse.cc.

References m_fcn_name.

◆ file_name()

std::string parse_exception::file_name ( void  ) const
inline

Definition at line 6485 of file oct-parse.cc.

References m_file_name.

◆ line()

int parse_exception::line ( void  ) const
inline

Definition at line 6487 of file oct-parse.cc.

References m_line.

Referenced by octave::base_parser::bison_error().

◆ message()

std::string parse_exception::message ( void  ) const
inline

Definition at line 6479 of file oct-parse.cc.

References m_message.

Referenced by octave::base_parser::bison_error().

◆ operator=()

parse_exception & parse_exception::operator= ( const parse_exception )
default

◆ what()

const char * parse_exception::what ( void  ) const
inlinenoexcept

Definition at line 6482 of file oct-parse.cc.

References m_message.

Member Data Documentation

◆ m_column

int parse_exception::m_column
private

Definition at line 6499 of file oct-parse.cc.

Referenced by column().

◆ m_fcn_name

std::string parse_exception::m_fcn_name
private

Definition at line 6496 of file oct-parse.cc.

Referenced by fcn_name().

◆ m_file_name

std::string parse_exception::m_file_name
private

Definition at line 6497 of file oct-parse.cc.

Referenced by file_name().

◆ m_line

int parse_exception::m_line
private

Definition at line 6498 of file oct-parse.cc.

Referenced by line().

◆ m_message

std::string parse_exception::m_message
private

Definition at line 6494 of file oct-parse.cc.

Referenced by message(), and what().


The documentation for this class was generated from the following file: