00001 /* Copyright (c) 2006, Gennady Bystritsky <bystr@mac.com> 00002 * 00003 * Distributed under the MIT Licence. 00004 * This is free software. See 'LICENSE' for details. 00005 * You must read and accept the license prior to use. 00006 */ 00007 00008 #ifndef _SK_UTIL_INSUFFICIENTMEMORYEXCEPTION_ 00009 #define _SK_UTIL_INSUFFICIENTMEMORYEXCEPTION_ 00010 00011 #include <sk/util/Exception.h> 00012 00013 namespace sk { 00014 namespace util { 00015 class InsufficientMemoryException 00016 : public sk::util::Exception 00017 { 00018 public: 00019 InsufficientMemoryException(const sk::util::String& purpose, int amount); 00020 00021 int getRequestedAmount() const; 00022 00023 // sk::util::Object re-implementation. 00024 const sk::util::Class getClass() const; 00025 00026 private: 00027 int _amount; 00028 }; 00029 } 00030 } 00031 00032 #endif /* _SK_UTIL_INSUFFICIENTMEMORYEXCEPTION_ */