Exception: GPGME::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GPGME::Error
- Defined in:
- lib/gpgme.rb
Direct Known Subclasses
AmbiguousName, BadCertificateChain, BadPassphrase, BadSignature, Canceled, CertificateExpired, CertificateRevoked, Conflict, DecryptFailed, General, InvalidEngine, InvalidValue, MissingCertificate, NoCRLKnown, NoData, NoPolicyMatch, NoPublicKey, NoSecretKey, NotImplemented, UnsupportedAlgorithm, UnusablePublicKey, UnusableSecretKey, WrongKeyUsage
Defined Under Namespace
Classes: AmbiguousName, BadCertificateChain, BadPassphrase, BadSignature, Canceled, CertificateExpired, CertificateRevoked, Conflict, DecryptFailed, General, InvalidEngine, InvalidValue, MissingCertificate, NoCRLKnown, NoData, NoPolicyMatch, NoPublicKey, NoSecretKey, NotImplemented, UnsupportedAlgorithm, UnusablePublicKey, UnusableSecretKey, WrongKeyUsage
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#code ⇒ Object
Return the error code.
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
-
#message ⇒ Object
Return a description of the error code.
-
#source ⇒ Object
Return the error source.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
598 599 600 |
# File 'lib/gpgme.rb', line 598 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
601 602 603 |
# File 'lib/gpgme.rb', line 601 def error @error end |
Instance Method Details
#code ⇒ Object
Return the error code.
The error code indicates the type of an error, or the reason why an operation failed.
607 608 609 |
# File 'lib/gpgme.rb', line 607 def code GPGME::gpgme_err_code(@error) end |
#message ⇒ Object
Return a description of the error code.
624 625 626 |
# File 'lib/gpgme.rb', line 624 def GPGME::gpgme_strerror(@error) end |
#source ⇒ Object
Return the error source.
The error source has not a precisely defined meaning. Sometimes it is the place where the error happened, sometimes it is the place where an error was encoded into an error value. Usually the error source will give an indication to where to look for the problem. This is not always true, but it is attempted to achieve this goal.
619 620 621 |
# File 'lib/gpgme.rb', line 619 def source GPGME::gpgme_err_source(@error) end |