ROSE  0.11.145.0
Public Types | Public Member Functions | List of all members
Sawyer::Yaml::Exception Class Reference

Description

Base class for YAML exceptions.

Definition at line 148 of file util/Sawyer/Yaml.h.

#include <util/Sawyer/Yaml.h>

Inheritance diagram for Sawyer::Yaml::Exception:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Yaml::Exception:
Collaboration graph
[legend]

Public Types

enum  eType {
  InternalError,
  ParsingError,
  OperationError
}
 Exception types. More...
 

Public Member Functions

 Exception (const std::string &message, const eType type)
 Constructor. More...
 
eType Type () const
 Get type of exception. More...
 
const char * Message () const
 Get message of exception. More...
 

Member Enumeration Documentation

Exception types.

Enumerator
InternalError 

Internal error.

ParsingError 

Invalid parsing data.

OperationError 

User operation error.

Definition at line 151 of file util/Sawyer/Yaml.h.

Constructor & Destructor Documentation

Sawyer::Yaml::Exception::Exception ( const std::string &  message,
const eType  type 
)

Constructor.

Parameters
messageException message.
typeType of exception.

Member Function Documentation

eType Sawyer::Yaml::Exception::Type ( ) const

Get type of exception.

const char* Sawyer::Yaml::Exception::Message ( ) const

Get message of exception.


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