libdigidocpp
digidoc::SignatureException Class Reference

#include <Exception.h>

Inheritance diagram for digidoc::SignatureException:
Inheritance graph
Collaboration diagram for digidoc::SignatureException:
Collaboration graph

Public Member Functions

 SignatureException (const std::string &file, int line, const std::string &msg)
 SignatureException (const std::string &file, int line, const std::string &msg, const Exception &cause)
- Public Member Functions inherited from digidoc::Exception
 Exception (const std::string &file, int line, const std::string &msg)
 Exception (const std::string &file, int line, const std::string &msg, const Exception &cause)
ExceptionCode code () const
int ddoc () const
std::string getMsg () const
bool hasCause () const
Causes getCauses () const
void addCause (const Exception &cause)
void setCode (ExceptionCode Code)
void setDDoc (int err)

Additional Inherited Members

- Public Types inherited from digidoc::Exception
enum  ExceptionCode {
  CertificateIssuerMissing = 10, CertificateRevoked = 5, CertificateUnknown = 6, NoException = 0,
  OCSPResponderMissing = 8, OCSPCertMissing = 9, OCSPTimeSlot = 7, OCSPRequestUnauthorized = 11,
  PINCanceled = 2, PINFailed = 4, PINIncorrect = 1, PINLocked = 3
}
typedef std::vector< ExceptionCauses
- Protected Attributes inherited from digidoc::Exception
std::string file
std::string msg
int line
int m_ddoc
Causes causes
ExceptionCode m_code

Detailed Description

Signature exception implementation. Thrown if the signature is in incorrect format or is used incorrectly.

Author
Janari Põld

Definition at line 121 of file Exception.h.

Constructor & Destructor Documentation

digidoc::SignatureException::SignatureException ( const std::string &  file,
int  line,
const std::string &  msg 
)
Parameters
filefilename, where the exception was thrown.
lineline of the file, where the exception was thrown.
msgerror message.
See Also
Exception::Exception(const std::string& file, int line, const std::string& msg)

Definition at line 177 of file Exception.cpp.

digidoc::SignatureException::SignatureException ( const std::string &  file,
int  line,
const std::string &  msg,
const Exception cause 
)
Parameters
filefilename, where the exception was thrown.
lineline of the file, where the exception was thrown.
msgerror message.
causecause of the exception.
See Also
Exception::Exception(const std::string& file, int line, const std::string& msg, const Exception& cause)
Exception::hasCause()
Exception::getCause()

Definition at line 190 of file Exception.cpp.


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