diff options
author | Max Kellermann <max@duempel.org> | 2016-02-28 11:52:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-28 11:52:39 +0100 |
commit | 9e2e8821579a6d7c5d36a4041a4223d3cde9d8fb (patch) | |
tree | acf4da99480be104598fa3aaf7b296348c5bd182 /src/PlaylistPrint.hxx | |
parent | 99ded56047814dfc629b727f1c3b8cd8d6a518f2 (diff) |
PlaylistPrint: throw PlaylistError on error
Diffstat (limited to 'src/PlaylistPrint.hxx')
-rw-r--r-- | src/PlaylistPrint.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PlaylistPrint.hxx b/src/PlaylistPrint.hxx index 346c4c6d2..ae1693366 100644 --- a/src/PlaylistPrint.hxx +++ b/src/PlaylistPrint.hxx @@ -41,8 +41,10 @@ playlist_print_uris(Response &r, Partition &partition, * information about the songs. The "end" offset is decreased * automatically if it is too large; passing UINT_MAX is allowed. * This function however fails when the start offset is invalid. + * + * Throws #PlaylistError if the range is invalid. */ -bool +void playlist_print_info(Response &r, Partition &partition, const playlist &playlist, unsigned start, unsigned end); @@ -50,9 +52,9 @@ playlist_print_info(Response &r, Partition &partition, /** * Sends the song with the specified id to the client. * - * @return true on suite, false if there is no such song + * Throws #PlaylistError if the range is invalid. */ -bool +void playlist_print_id(Response &r, Partition &partition, const playlist &playlist, unsigned id); |