class RuneterraCards::UnrecognizedFactionError

This exception is raised if the deck code contains an unexpected faction number. (see the table at {github.com/RiotGames/LoRDeckCodes} for what 'faction number' means.) This most likely means that Legends of Runeterra has a new faction and you need to update to a newer version of this library to handle it.

Check that the {#faction_number} causing issues is listed in {github.com/RiotGames/LoRDeckCodes the table on Github}. If it isn't then something else has gone wrong. If it is, and updating this library doesn't fix the issue, then the library needs updating - {github.com/zofrex/runeterra_cards/issues file an issue}.

Attributes

faction_number[R]

@return [Fixnum] the faction number that was unrecognized

Public Class Methods

new(faction_number) click to toggle source

@param [Fixnum] faction_number The faction number we encountered and did not recognise.

Calls superclass method
# File lib/runeterra_cards/errors.rb, line 60
def initialize(faction_number)
  super(
    "Unrecognized faction number '#{faction_number}'."\
    ' Possibly you need to update this library to a newer version')
  @faction_number = faction_number
end