Classes | Enumerations | Functions
ecl Namespace Reference

Classes

class  Error
 The primary error handler for ecl libraries. More...
 

Enumerations

enum  ErrorFlag {
  NoError = 0, UnknownError = -1, OutOfRangeError = -2, ConstructorError = -3,
  DestructorError = -4, ConversionError = -5, OpenError = -6, CloseError = -7,
  InvalidArgError = -8, ConfigurationError = -9, ConnectionError = -10, ReadError = -11,
  WriteError = -12, NotInitialisedError = -13, PermissionsError = -14, MemoryError = -15,
  UsageError = -16, RaiiError = -17, ArgNotSupportedError = -18, NotSupportedError = -19,
  BusyError = -20, OutOfResourcesError = -21, InterruptedError = -22, BlockingError = -23,
  SystemFailureError = -24, InvalidObjectError = -25, IsLockedError = -26, TimeOutError = -27,
  NotFoundError = -28, ConnectionRefusedError = -29, PosixError = -101, InvalidInputError = -103
}
 Enumerated flags for error message handling. More...
 

Functions

bool is_big_endian ()
 
bool is_char_signed ()
 

Enumeration Type Documentation

Enumerated flags for error message handling.

These are simple flags to identify the type of error when it occurs. Use with the Error class (and its child classes, e.g. TimeError) to identify errors and get verbose string output when debugging.

Enumerator
NoError 

No error (often a meaningful error state in itself).

UnknownError 

Unknown error type.

OutOfRangeError 

Tried to access beyond the range of the object (usually container).

ConstructorError 

An error occurred somewhere inside a class constructor.

DestructorError 

The destructor failed to self-destruct.

ConversionError 

A conversion (usually between types) failed.

OpenError 

Failed to open an input/output device.

CloseError 

Failed to close an input/output device.

InvalidArgError 

The user entered an invalid argument to this method, c.f. InvalidObjectError.

ConfigurationError 

There was a configuration error (usually in a configure() or initialise() method).

ConnectionError 

There was a connection error, usually with input-output devices.

ReadError 

There was a read error, usually with input-output devices.

WriteError 

There was a write error, usually with input-output devices.

NotInitialisedError 

The target object has not yet been initialised, accessing before doing so is not permitted.

PermissionsError 

The caller does not have the required permissions.

MemoryError 

There was a problem allocating the requested memory.

UsageError 

The object was used incorrectly and caused an error.

RaiiError 

The object is pure RAII style and must be initialised properly.

ArgNotSupportedError 

The combination of input arguments is not supported on this platform.

NotSupportedError 

This operation is not supported on this platform.

BusyError 

Resources are busy, operation is not permitted.

OutOfResourcesError 

Out of resources, cannot proceed.

InterruptedError 

This operation was interrupted.

BlockingError 

A device marked as blocking, but used as non-blocking, or vice versa.

SystemFailureError 

A subcomponent of the system platform has failed (e.g. io subsystem).

InvalidObjectError 

Attempted to work on an invalid object (e.g. dir instead of a file), c.f. InvalidArgError

IsLockedError 

Invalidates attempts to work further because an object is locked.

TimeOutError 

A timeout occured.

NotFoundError 

An object was not found.

ConnectionRefusedError 

A connection was refused by the other end (e.g. socket client server connections).

PosixError 

Deprecating.

InvalidInputError 

Deprecated.

Definition at line 36 of file flags.hpp.



ecl_errors
Author(s): Daniel Stonier
autogenerated on Fri Jun 17 2016 04:09:20