From: Ben Beltran Date: Sat, 6 Oct 2012 07:40:28 +0000 (-0500) Subject: Adds skeletons for Exceptions X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/commitdiff_plain/143d7aad53cdb6e15f17ef7d1a98981dac7140da?ds=inline;hp=f2ec7254120c90c3b023687f67a7b19f78b69370 Adds skeletons for Exceptions --- diff --git a/.yardoc/checksums b/.yardoc/checksums deleted file mode 100644 index b2fe954..0000000 --- a/.yardoc/checksums +++ /dev/null @@ -1,11 +0,0 @@ -lib/lyricli.rb 51e33086d1cbac6ccd601dd481a3b455376efb46 -lib/lyricli/util.rb 26284bcf3521994d5f81c5f10a750dad8fda1593 -lib/lyricli/lyricli.rb 5a966a6402b5646b2c755cf79c3f7006b4a6d818 -lib/lyricli/sources.rb 69d670f2d008827b861dcd543caad3986ccc323e -lib/lyricli/exceptions.rb 943e408e869981dded31cd236da1da937e6b0574 -lib/lyricli/sources/rdio.rb 8936e4de676719c26fe6b8fcf2396b85d5723996 -lib/lyricli/lyrics_engine.rb 9ebc53647e5be739ce8a0fe1e7d10fbce02d7083 -lib/lyricli/configuration.rb f08b1caf4dffacccf888c5b22e4a8e3107f004d6 -lib/lyricli/sources/itunes.rb aadca88a9ad0d0b4c918d86874f403d10ec3add7 -lib/lyricli/source_manager.rb d16a3e3592f48dbda8adbef1b1cfe49a9dc42617 -lib/lyricli/sources/arguments.rb fa19b956453041cf5df0402142cbe073f2c9e686 diff --git a/.yardoc/object_types b/.yardoc/object_types deleted file mode 100644 index 1ed18b4..0000000 Binary files a/.yardoc/object_types and /dev/null differ diff --git a/.yardoc/objects/root.dat b/.yardoc/objects/root.dat deleted file mode 100644 index 8522ce3..0000000 Binary files a/.yardoc/objects/root.dat and /dev/null differ diff --git a/.yardoc/proxy_types b/.yardoc/proxy_types deleted file mode 100644 index beefda1..0000000 Binary files a/.yardoc/proxy_types and /dev/null differ diff --git a/lib/lyricli/exceptions/disable_source_exception.rb b/lib/lyricli/exceptions/disable_source_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/enable_source_exception.rb b/lib/lyricli/exceptions/enable_source_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/invalid_lyrics_exception.rb b/lib/lyricli/exceptions/invalid_lyrics_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/lyrics_not_found_exception.rb b/lib/lyricli/exceptions/lyrics_not_found_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/reset_source_exception.rb b/lib/lyricli/exceptions/reset_source_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/source_configuration_exception.rb b/lib/lyricli/exceptions/source_configuration_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/start_source_exception.rb b/lib/lyricli/exceptions/start_source_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/exceptions/unknown_source_exception.rb b/lib/lyricli/exceptions/unknown_source_exception.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/lyricli/source_manager.rb b/lib/lyricli/source_manager.rb index 3514c34..020870d 100644 --- a/lib/lyricli/source_manager.rb +++ b/lib/lyricli/source_manager.rb @@ -36,7 +36,7 @@ module Lyricli raise EnableSourceException end else - raise UnknownSource + raise UnknownSourceException end end @@ -53,7 +53,7 @@ module Lyricli raise DisableSourceException end else - raise UnknownSource + raise UnknownSourceException end end @@ -70,7 +70,7 @@ module Lyricli raise ResetSourceException end else - raise UnknownSource + raise UnknownSourceException end end