These classes are the exceptions that can be thrown in the library code. Use these in your catch() blocks and you'll be able to get more information than what std::exception provides. Use GNSSTK_THROW() and GNSSTK_RETHROW() to throw or rethrow these exceptions to automatically add line and file information to your exceptions.
Classes | |
| class | gnsstk::Exception |
Macros | |
| #define | GNSSTK_RETHROW(exc) { exc.addLocation(FILE_LOCATION); throw; } |
| #define | GNSSTK_THROW(exc) { exc.addLocation(FILE_LOCATION); throw exc; } |
| #define | NEW_EXCEPTION_CLASS(child, parent) |
| #define GNSSTK_RETHROW | ( | exc | ) | { exc.addLocation(FILE_LOCATION); throw; } |
A macro for adding location when rethrowing an gnsstk::Exception
Definition at line 369 of file Exception.hpp.
| #define GNSSTK_THROW | ( | exc | ) | { exc.addLocation(FILE_LOCATION); throw exc; } |
A macro for adding location when throwing an gnsstk::Exception
Definition at line 366 of file Exception.hpp.
| #define NEW_EXCEPTION_CLASS | ( | child, | |
| parent | |||
| ) |
A macro for quickly defining a new exception class that inherits from an gnsstk::Exception derived class. Use this to make specific exceptions, such as the ones defined in this header file. Make sure that all exceptions have "\@ingroup exceptiongroup" in their comment block so doxygen knows what to do with them.
Definition at line 388 of file Exception.hpp.
| gnsstk::NEW_EXCEPTION_CLASS | ( | AccessError | , |
| Exception | |||
| ) |
Thrown if a function makes a request of the OS that can't be satisfied.
| gnsstk::NEW_EXCEPTION_CLASS | ( | AssertionFailure | , |
| Exception | |||
| ) |
Thrown when a required condition in a function is not met.
| gnsstk::NEW_EXCEPTION_CLASS | ( | ConfigurationException | , |
| Exception | |||
| ) |
Application's configuration is invalid
| gnsstk::BinUtils::NEW_EXCEPTION_CLASS | ( | CRCException | , |
| Exception | |||
| ) |
This is thrown when there is an error processing a CRC
| gnsstk::NEW_EXCEPTION_CLASS | ( | FileMissingException | , |
| Exception | |||
| ) |
Attempted to open a file that doesn't exist
| gnsstk::NEW_EXCEPTION_CLASS | ( | FileSpecException | , |
| gnsstk::Exception | |||
| ) |
This exception is thrown when there is a problem with handling file specifications.
| gnsstk::NEW_EXCEPTION_CLASS | ( | GeometryException | , |
| gnsstk::Exception | |||
| ) |
Thrown when a gnsstk::Triple operation can't be completed.
| gnsstk::NEW_EXCEPTION_CLASS | ( | IndexOutOfBoundsException | , |
| Exception | |||
| ) |
Attempts to access an "array" or other element that doesn't exist
| gnsstk::NEW_EXCEPTION_CLASS | ( | InvalidArgumentException | , |
| Exception | |||
| ) |
A function was passed an invalid argument
| gnsstk::IonoModel::NEW_EXCEPTION_CLASS | ( | InvalidIonoModel | , |
| gnsstk::Exception | |||
| ) |
Exception, thrown when attempting to use a model for which not all the necessary parameters have been specified.
| gnsstk::NEW_EXCEPTION_CLASS | ( | InvalidParameter | , |
| Exception | |||
| ) |
Thrown when a function is given a parameter value that it invalid
| gnsstk::NEW_EXCEPTION_CLASS | ( | InvalidRequest | , |
| Exception | |||
| ) |
Thrown if a function can not satisfy a request
| gnsstk::NEW_EXCEPTION_CLASS | ( | InvalidTropModel | , |
| gnsstk::Exception | |||
| ) |
Thrown when attempting to use a model for which all necessary parameters have not been specified.
| gnsstk::IonoModelStore::NEW_EXCEPTION_CLASS | ( | NoIonoModelFound | , |
| gnsstk::Exception | |||
| ) |
Thrown when attempting to get a model that isn't stored.
| gnsstk::NEW_EXCEPTION_CLASS | ( | NullPointerException | , |
| Exception | |||
| ) |
Attempted to access a null pointer
| gnsstk::NEW_EXCEPTION_CLASS | ( | ObjectNotFound | , |
| AccessError | |||
| ) |
Operation failed because it was unable to locate the requested obj
| gnsstk::NEW_EXCEPTION_CLASS | ( | OutOfMemory | , |
| Exception | |||
| ) |
Unable to allocate memory
| gnsstk::StringUtils::NEW_EXCEPTION_CLASS | ( | StringException | , |
| Exception | |||
| ) |
This is thrown instread of a std::exception when a gnsstk::StringUtils function fails.
| gnsstk::NEW_EXCEPTION_CLASS | ( | SVNotPresentException | , |
| gnsstk::InvalidRequest | |||
| ) |
Exception - requested almanac page that wasn't present.
| gnsstk::NEW_EXCEPTION_CLASS | ( | SystemPipeException | , |
| Exception | |||
| ) |
A problem using a system pipe
| gnsstk::NEW_EXCEPTION_CLASS | ( | SystemQueueException | , |
| Exception | |||
| ) |
A problem using a system queue
| gnsstk::NEW_EXCEPTION_CLASS | ( | SystemSemaphoreException | , |
| Exception | |||
| ) |
A problem using a system semaphore
| gnsstk::NEW_EXCEPTION_CLASS | ( | UnimplementedException | , |
| Exception | |||
| ) |
Attempted to access a unimplemented function
| gnsstk::NEW_EXCEPTION_CLASS | ( | VectorException | , |
| gnsstk::Exception | |||
| ) |
An exception thrown when there's a problem with a vector