File IOExceptions.h

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine

This header file contains functions that allow for common notation for common things that can be done at a different degree of derivatives.

This header contains alias definitions defining which classes to use for the different degrees of derivatives.

namespace Utils
class IOException : public runtime_error
#include <IOExceptions.h>

Base class for exceptions related to input-output.

Subclassed by Scine::Utils::InvalidAtomCountSpecification, Scine::Utils::InvalidAtomSpecification, Scine::Utils::InvalidFile

Public Functions

IOException(const std::string &s)
class InvalidFile : public Scine::Utils::IOException
#include <IOExceptions.h>

Exception when file cannot be opened.

Public Functions

InvalidFile(const std::string &filename)
class InvalidAtomCountSpecification : public Scine::Utils::IOException
#include <IOExceptions.h>

Exception thrown when the first line of a xyz input does not contain the number of atoms.

Public Functions

InvalidAtomCountSpecification(const std::string &firstLine)
class InvalidAtomSpecification : public Scine::Utils::IOException
#include <IOExceptions.h>

Exception thrown when a line for an atom of a xyz input is invalid.

Public Functions

InvalidAtomSpecification(const std::string &atomLine)