libLAS API Reference  1.8.1
Public Member Functions | List of all members
liblas::Error Class Reference

Definition of error notification used on the level of C API. More...

#include <error.hpp>

Collaboration diagram for liblas::Error:
Collaboration graph

Public Member Functions

 Error (int code, std::string const &message, std::string const &method)
 Custom constructor. More...
 Error (Error const &other)
 Copy constructor. More...
Erroroperator= (Error const &rhs)
 Assignment operator. More...
int GetCode () const
std::string GetMessage () const
std::string GetMethod () const

Detailed Description

Definition of error notification used on the level of C API.

This class describes details of error condition occured in libLAS core. All errors are stacked by C API layer, so it's possible to track problem down to its source.

Constructor & Destructor Documentation

liblas::Error::Error ( int  code,
std::string const &  message,
std::string const &  method 

Custom constructor.

This is the main and the only tool to initialize error instance.

liblas::Error::Error ( Error const &  other)

Copy constructor.

Error objects are copyable.

Member Function Documentation

int liblas::Error::GetCode ( ) const
std::string liblas::Error::GetMessage ( ) const
std::string liblas::Error::GetMethod ( ) const
Error& liblas::Error::operator= ( Error const &  rhs)

Assignment operator.

Error objects are assignable.

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