Ignore:
Timestamp:
03/30/16 17:08:08 (8 years ago)
Author:
Maciej Komosinski
Message:

Introduced general-use ErrorObject?, fixed enumeration of mixed private/public property lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/extvalue.h

    r482 r490  
    185185        void setEmpty();
    186186        void setInvalid() { setEmpty(); type = TInvalid; }
     187        void setError(const SString& msg);
    187188        bool makeUnique() { return (type == TObj) && odata().makeUnique(); } //< @return false if nothing has changed
    188189        ExtPType getType() const { return type; }
     
    243244#define REGISTER_DESERIALIZABLE(name) ExtValue::AddDeserializable<name> deserializable_autoinit_ ## name;
    244245
    245 #endif
     246class ErrorObject: public DestrBase
     247{
     248  public:
     249SString message;
     250static Param& getParam();
     251static Param& getStaticParam() {return getParam();}
     252static ExtObject makeDynamicObject(ErrorObject* e);
     253static const SString TO_STRING_PREFIX;
     254#define STATRICKCLASS ErrorObject
     255PARAMGETDEF(toString);
     256PARAMPROCDEF(p_newfromstring);
     257#undef STATRICKCLASS
     258};
     259
     260#endif
Note: See TracChangeset for help on using the changeset viewer.