Exception: Universign::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/universign/error.rb

Class Method Summary collapse

Class Method Details

.match_class(code) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/universign/error.rb', line 3

def self.match_class(code)
  {
    73002 => Universign::ErrorWhenSigningPDF, # An error occured when signing the PDF document
    73010 => Universign::InvalidCredentials, # The login and/or password are invalid.
    73025 => Universign::UnknownDocument, # The used transaction id or custom id is invalid
    73027 => Universign::DocumentNotSigned
  }.fetch(code, nil)
end