]> git.tdb.fi Git - libs/al.git/blobdiff - source/context.cpp
Use standard exception classes
[libs/al.git] / source / context.cpp
index bc2964f3e0fc4396169460273d1b141b016f8e25..4c9b77cd23300bbbaefbf805057b012095ac227e 100644 (file)
@@ -1,11 +1,4 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <msp/core/except.h>
+#include <stdexcept>
 #include "context.h"
 #include "device.h"
 
@@ -16,7 +9,7 @@ Context::Context(Device &dev)
 {
        context = alcCreateContext(dev.get_device(), 0);
        if(!context)
-               throw Exception("Couldn't create OpenAL context");
+               throw std::runtime_error("Couldn't create OpenAL context");
 
        alcMakeContextCurrent(context);
 }