X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fasset.cpp;h=d605ff49573cb2e329513ea2d722023945de302b;hp=9284f97107f9e19a2eacfb121ddcd43c0c09e3b3;hb=1787d4928ac1285f5434a2c8d0676deea9ce9176;hpb=3bfc22d12b893d94cbb4697a77b7cababcbbd921 diff --git a/source/io/asset.cpp b/source/io/asset.cpp index 9284f97..d605ff4 100644 --- a/source/io/asset.cpp +++ b/source/io/asset.cpp @@ -1,3 +1,4 @@ +#include #include "asset.h" using namespace std; @@ -7,12 +8,12 @@ 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"); } size_t Asset::do_write(const char *, size_t) @@ -22,7 +23,7 @@ size_t Asset::do_write(const char *, size_t) const Handle &Asset::get_handle(Mode) { - throw logic_error("Asset::get_handle"); + throw unsupported("Asset::get_handle"); } } // namespace IO