]> git.tdb.fi Git - libs/al.git/blobdiff - source/jukebox.cpp
Use standard exception classes
[libs/al.git] / source / jukebox.cpp
index 95ca6a05e9e2656dab7d85708c98d07e0606cafd..d2a997d4cfffcf35f61f7e020183665b837f1492 100644 (file)
@@ -1,13 +1,6 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <algorithm>
 #include <cstdlib>
-#include <msp/core/except.h>
+#include <stdexcept>
 #include "jukebox.h"
 #include "sound.h"
 
@@ -63,7 +56,7 @@ void Jukebox::clear_tracks()
 const string &Jukebox::get_current_track() const
 {
        if(tracks.empty())
-               throw InvalidState("No current track");
+               throw logic_error("No current track");
        return *current_track;
 }