Module: Wowr::Exceptions

Defined in:
lib/wowr/exceptions.rb

Defined Under Namespace

Classes: CharacterNotFound, EmptyPage, GuildNotFound, InvalidArenaTeamSize, InvalidSearchType, InvalidXML, ItemNotFound, NoSearchString, SearchError

Class Method Summary collapse

Class Method Details

.raise_me(code) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/wowr/exceptions.rb', line 3

def self.raise_me(code)
  #msg = "(#{code.to_s}) #{msg}"
  case code
    when "noCharacter"
      raise CharacterNotFound.new("Character with that name not found.")
  end
end