]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/memory.cpp
Add a dedicated exception class for a bad seek operation
[libs/core.git] / source / io / memory.cpp
index f64b4be9e52edcb6fcae3bb94c99d69595fd4e80..37954cca5bea6bb95a62a5afdfc094009584ba83 100644 (file)
@@ -116,7 +116,7 @@ SeekOffset Memory::seek(SeekOffset off, SeekType type)
                throw invalid_argument("Memory::seek");
 
        if(new_pos<begin || new_pos>end)
-               throw out_of_range("Memory::seek");
+               throw bad_seek(off, type);
 
        pos = new_pos;
        eof_flag = false;