vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::algorithms::GFAFormatError Struct Reference

This exception will be thrown if the GFA data is not acceptable. More...

#include <gfa_to_handle.hpp>

Inheritance diagram for vg::algorithms::GFAFormatError:
vg::algorithms::GFADuplicatePathError

Public Member Functions

 GFAFormatError (const string &message)
 We can make one from a message. More...
 
 GFAFormatError (const string &message, const GFAParser::cursor_t &position, const char *parsing_state=nullptr)
 We can also make one with a position and a possibly null parsing state. More...
 
virtual const char * what () const noexcept
 

Public Attributes

bool has_position = false
 
GFAParser::cursor_t position
 
size_t pass_number = 0
 
size_t line_number = 0
 
size_t column_number = 0
 
string file_name = ""
 
string message_buffer
 

Detailed Description

This exception will be thrown if the GFA data is not acceptable.

Constructor & Destructor Documentation

◆ GFAFormatError() [1/2]

vg::algorithms::GFAFormatError::GFAFormatError ( const string &  message)

We can make one from a message.

◆ GFAFormatError() [2/2]

vg::algorithms::GFAFormatError::GFAFormatError ( const string &  message,
const GFAParser::cursor_t position,
const char *  parsing_state = nullptr 
)

We can also make one with a position and a possibly null parsing state.

Member Function Documentation

◆ what()

const char * vg::algorithms::GFAFormatError::what ( ) const
virtualnoexcept

Return a pointer to a string describing this exception. Not thread safe.

Member Data Documentation

◆ column_number

size_t vg::algorithms::GFAFormatError::column_number = 0

◆ file_name

string vg::algorithms::GFAFormatError::file_name = ""

◆ has_position

bool vg::algorithms::GFAFormatError::has_position = false

◆ line_number

size_t vg::algorithms::GFAFormatError::line_number = 0

◆ message_buffer

string vg::algorithms::GFAFormatError::message_buffer
mutable

◆ pass_number

size_t vg::algorithms::GFAFormatError::pass_number = 0

◆ position

GFAParser::cursor_t vg::algorithms::GFAFormatError::position

The documentation for this struct was generated from the following files: