X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fasset.cpp;h=d605ff49573cb2e329513ea2d722023945de302b;hb=83fcabb1fc1acff5d115f07253f801fc3f7cca9a;hp=526133e3c383a95a49a6438676fb025c2e0981c3;hpb=7ad451f4b5e4352d15165f472a00cf33957a1687;p=libs%2Fcore.git diff --git a/source/io/asset.cpp b/source/io/asset.cpp index 526133e..d605ff4 100644 --- a/source/io/asset.cpp +++ b/source/io/asset.cpp @@ -1,3 +1,4 @@ +#include #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