Exception: UrbanDictionary::UrbanDictError

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

Overview

Urban Dictionary does not provide any useful information, so we provide a note about alphanumeric characters which is the only error I have encountered to date (1/18/2021).

Instance Method Summary collapse

Instance Method Details

#messageObject



33
34
35
36
# File 'lib/urbandict.rb', line 33

def message
  'An error occurred. This could be because of issues with non-alphanumeric characters which are not handled ' \
    'properly by the Urban Dictionary API.'
end