Exception: GPGME::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GPGME::Error
- Defined in:
- lib/gpgme/error.rb
Direct Known Subclasses
AmbiguousName, BadCertificateChain, BadPassphrase, BadSignature, Canceled, CertificateExpired, CertificateRevoked, Conflict, DecryptFailed, General, InvalidEngine, InvalidValue, InvalidVersion, 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, InvalidVersion, MissingCertificate, NoCRLKnown, NoData, NoPolicyMatch, NoPublicKey, NoSecretKey, NotImplemented, UnsupportedAlgorithm, UnusablePublicKey, UnusableSecretKey, WrongKeyUsage
Instance Attribute Summary (collapse)
-
- (Object) error
readonly
Returns the value of attribute error.
Instance Method Summary (collapse)
-
- (Object) code
Return the error code.
-
- (Error) initialize(error)
constructor
A new instance of Error.
-
- (Object) message
Return a description of the error code.
-
- (Object) source
Return the error source.
Constructor Details
- (Error) initialize(error)
A new instance of Error
3 4 5 |
# File 'lib/gpgme/error.rb', line 3 def initialize(error) @error = error end |
Instance Attribute Details
- (Object) error (readonly)
Returns the value of attribute error
6 7 8 |
# File 'lib/gpgme/error.rb', line 6 def error @error end |
Instance Method Details
- (Object) code
Return the error code.
The error code indicates the type of an error, or the reason why an operation failed.
12 13 14 |
# File 'lib/gpgme/error.rb', line 12 def code GPGME::gpgme_err_code(@error) end |
- (Object) message
Return a description of the error code.
29 30 31 |
# File 'lib/gpgme/error.rb', line 29 def GPGME::gpgme_strerror(@error) end |
- (Object) source
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.
24 25 26 |
# File 'lib/gpgme/error.rb', line 24 def source GPGME::gpgme_err_source(@error) end |