Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::exception Namespace Reference

Classes

class  AlgorithmNotFound
 
class  DecodingError
 
class  EncodingError
 
class  Exception
 
class  FileNameNotAvailable
 
class  FileNotFound
 
class  FolderNotFound
 
class  ImpossibleLabelingError
 
class  IntegerOverflowDetected
 
class  InternalError
 
class  InvalidAlgorithmName
 
class  InvalidArgument
 
class  InvalidAuthenticationTag
 
class  InvalidFileIntegrity
 
class  InvalidIVLength
 
class  InvalidKeyLength
 
class  InvalidState
 
class  KeyNotSet
 
class  LibZipError
 
class  LookupError
 
class  MissingCase
 
class  NotImplemented
 
class  OutOfBoundsMemoryAccess
 
class  PortNotOpenedException
 
class  PRNGUnseeded
 
class  ProviderNotFound
 
class  SerialPortException
 
class  StreamIOError
 
class  SystemError
 
class  UnknownPKFieldName
 

Enumerations

enum class  eExceptionType {
  Unknown = 1 , SystemError , NotImplemented , OutOfMemory ,
  InternalError , IoError , SerialPortError , FolderNotFound ,
  FileNotFound , FileNameNotAvailable , OutOfBoundsMemoryAccess , InvalidObjectState = 100 ,
  KeyNotSet , InvalidArgument , InvalidKeyLength , InvalidNonceLength ,
  LookupError , EncodingFailure , DecodingFailure , TLSError ,
  HttpError , InvalidTag , RoughTimeError , MissingCase ,
  CommonCryptoError = 201 , Pkcs11Error , TPMError , DatabaseError ,
  InvalidFileIntegrity , LibZipError = 300 , Bzip2Error , LzmaError
}
 

Functions

std::string toString (const iv::exception::eExceptionType type)
 
template<typename E , typename... Args>
void doThrowError (const char *file, int line, const char *func, Args... args)
 

Enumeration Type Documentation

◆ eExceptionType

enum class iv::exception::eExceptionType
strong
Enumerator
Unknown 

Some unknown error

SystemError 

An error while calling a system interface

NotImplemented 

An operation seems valid, but not supported by the current version

OutOfMemory 

Memory allocation failure

InternalError 

An internal error occurred

IoError 

An I/O error occurred

SerialPortError 

An error occurred while interacting with a serial port

FolderNotFound 
FileNotFound 
FileNameNotAvailable 
OutOfBoundsMemoryAccess 
InvalidObjectState 

An out-of-bounds memory access was detected Invalid object state

KeyNotSet 

A key was not set on an object when this is required

InvalidArgument 

The application provided an argument which is invalid

InvalidKeyLength 

A key with invalid length was provided

InvalidNonceLength 

A nonce with invalid length was provided

LookupError 

An object type was requested but cannot be found

EncodingFailure 

Encoding a message or datum failed

DecodingFailure 

Decoding a message or datum failed

TLSError 

A TLS error (error_code will be the alert type)

HttpError 

An error during an HTTP operation

InvalidTag 

A message with an invalid authentication tag was detected

RoughTimeError 

An error during Rough Time validation

MissingCase 

An error during switch-case non default value

CommonCryptoError 

An error when interacting with CommonCrypto API

Pkcs11Error 

An error when interacting with a PKCS11 device

TPMError 

An error when interacting with a TPM device

DatabaseError 

An error when interacting with a database

InvalidFileIntegrity 

An error when can't validate the project's files

LibZipError 

An error when interacting with libzip

Bzip2Error 

An error when interacting with bzip2

LzmaError 

An error when interacting with lzma

Function Documentation

◆ doThrowError()

template<typename E , typename... Args>
void iv::exception::doThrowError ( const char * file,
int line,
const char * func,
Args... args )
inline

◆ toString()

std::string iv::exception::toString ( const iv::exception::eExceptionType type)