Exception: Genius::Errors::LyricsNotFoundError
- Inherits:
-
GeniusExceptionSuperClass
- Object
- StandardError
- GeniusExceptionSuperClass
- Genius::Errors::LyricsNotFoundError
- Defined in:
- lib/genius/api/errors.rb
Overview
A LyricsNotFoundError object handles an exception where JSON with lyrics is not found.
Instance Attribute Summary collapse
-
#exception_type ⇒ Object
readonly
Returns the value of attribute exception_type.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg: 'Lyrics not found in current session. Retrying...', exception_type: 'invalid_lyrics') ⇒ void
constructor
Initializes a lyrics-not-found error.
Constructor Details
#initialize(msg: 'Lyrics not found in current session. Retrying...', exception_type: 'invalid_lyrics') ⇒ void
Initializes a lyrics-not-found error.
90 91 92 93 94 |
# File 'lib/genius/api/errors.rb', line 90 def initialize(msg: 'Lyrics not found in current session. Retrying...', exception_type: 'invalid_lyrics') @msg = msg @exception_type = exception_type super(msg) end |
Instance Attribute Details
#exception_type ⇒ Object (readonly)
Returns the value of attribute exception_type.
83 84 85 |
# File 'lib/genius/api/errors.rb', line 83 def exception_type @exception_type end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
83 84 85 |
# File 'lib/genius/api/errors.rb', line 83 def msg @msg end |