diff --git a/src/input/plugins/TidalError.hxx b/src/input/plugins/TidalError.hxx index 4ea1ff5ca..5c7d80886 100644 --- a/src/input/plugins/TidalError.hxx +++ b/src/input/plugins/TidalError.hxx @@ -26,6 +26,9 @@ /** * An error condition reported by the server. + * + * See http://developer.tidal.com/technical/errors/ for details (login + * required). */ class TidalError : public std::runtime_error { /** @@ -52,6 +55,10 @@ public: unsigned GetSubStatus() const noexcept { return sub_status; } + + bool IsInvalidSession() const noexcept { + return sub_status == 6001 || sub_status == 6002; + } }; #endif