LOOS  v2.3.2
loos::FileOpenError Class Reference

Error while opening a file. More...

#include <exceptions.hpp>

Inheritance diagram for loos::FileOpenError:
Collaboration diagram for loos::FileOpenError:

Public Member Functions

 FileOpenError (const std::string &fname)
 
 FileOpenError (const std::string &fname, const std::string &msg)
 
 FileOpenError (const std::string &fname, const std::string &msg, const int err)
 
- Public Member Functions inherited from loos::FileError
 FileError (const std::string &op)
 
 FileError (const std::string &op, const std::string &fname)
 
 FileError (const std::string &op, const std::string &fname, const std::string &msg)
 
 FileError (const std::string &op, const std::string &fname, const std::string &msg, const int err)
 
std::string operation () const throw ()
 What operation was involved (e.g. reading, writing. etc)
 
std::string filename () const throw ()
 File that had the problem (or "stream" if not a file)
 
int errorCode () const
 The error code that may have been generated.
 
void errorCode (const int i)
 Sets the error code.
 
- Public Member Functions inherited from loos::LOOSError
 LOOSError (const std::string &arg)
 
 LOOSError (const Atom &a, const std::string &arg)
 
virtual const char * what (void) const throw ()
 

Additional Inherited Members

- Protected Attributes inherited from loos::FileError
std::string _operation
 
std::string _filename
 
int _errcode
 
- Protected Attributes inherited from loos::LOOSError
std::string _msg
 

Detailed Description

Error while opening a file.

This mostly represents issues with actually opening the file, such as a bad filename, permissions, as well as scanning the file as part of instantiation.

Some classes will automatically read either the whole file or, in the case of trajectories, the first frame. This can result in a FileReadError exception being thrown, despite being part of a logical "open" operation.

Definition at line 170 of file exceptions.hpp.


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