]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/asset.cpp
Add move semantics to Variant
[libs/core.git] / source / io / asset.cpp
index 526133e3c383a95a49a6438676fb025c2e0981c3..d605ff49573cb2e329513ea2d722023945de302b 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/core/except.h>
 #include "asset.h"
 
 using namespace std;
@@ -7,22 +8,22 @@ namespace IO {
 
 void Asset::set_block(bool)
 {
-       throw logic_error("Asset::set_block");
+       throw unsupported("Asset::set_block");
 }
 
 void Asset::set_inherit(bool)
 {
-       throw logic_error("Asset::set_inherit");
+       throw unsupported("Asset::set_inherit");
 }
 
-unsigned Asset::do_write(const char *, unsigned)
+size_t Asset::do_write(const char *, size_t)
 {
        throw invalid_access(M_WRITE);
 }
 
 const Handle &Asset::get_handle(Mode)
 {
-       throw logic_error("Asset::get_handle");
+       throw unsupported("Asset::get_handle");
 }
 
 } // namespace IO