Exception: RuneterraCards::Base32Error

Inherits:
DeckCodeParseError show all
Defined in:
lib/runeterra_cards/errors.rb

Overview

This exception is raised if the deck code cannot be Base32-decoded. This probably means it isn't a deck code, or got malformed somehow.

Instance Method Summary collapse

Constructor Details

#initializeBase32Error

Returns a new instance of Base32Error with a helpful error message preloaded.


12
13
14
15
16
# File 'lib/runeterra_cards/errors.rb', line 12

def initialize
  super(
    'Encountered an error while Base32 decoding deck code.' \
    ' Probably an invalid deck code, or possibly a bug in the Base32 handling.')
end