Exception: Varanus::Error

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

Overview

Error returned from the Sectigo API

Direct Known Subclasses

StillProcessing

Defined Under Namespace

Classes: StillProcessing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/varanus/error.rb', line 8

def initialize code, msg
  @code = code
  super(msg)
end

Instance Attribute Details

#codeInteger (readonly)

Returns Code associated with error.

Returns:

  • (Integer)

    Code associated with error



6
7
8
# File 'lib/varanus/error.rb', line 6

def code
  @code
end