Pivotal GemFire Native Client Cache Reference  9.0.6
UserFunctionExecutionException.hpp
1 /*=========================================================================
2  * Copyright (c) 2010-2014 Pivotal Software, Inc. All Rights Reserved.
3  * This product is protected by U.S. and international copyright
4  * and intellectual property laws. Pivotal products are covered by
5  * one or more patents listed at http://www.pivotal.io/patents.
6  *=========================================================================
7  */
8 #ifndef USER_FUNCTION_EXECUTION_EXCEPTION
9 #define USER_FUNCTION_EXECUTION_EXCEPTION
10 
11 #include "Serializable.hpp"
12 #include "CacheableString.hpp"
13 
14 namespace gemfire
15 {
16  class UserFunctionExecutionException;
17  typedef SharedPtr<UserFunctionExecutionException> UserFunctionExecutionExceptionPtr;
18 
23 
28  public:
33 
38 
43  virtual void toData( DataOutput& output ) const;
44 
50  virtual Serializable* fromData( DataInput& input );
51 
61  virtual int32_t classId( ) const ;
62 
72  virtual uint32_t objectSize() const;
73 
82  virtual int8_t typeId( ) const;
83 
88  return m_message;
89  }
90 
95  const char* msg = "UserFunctionExecutionException";
97  return str;
98  }
99 
100  private:
101  // never implemented.
103  void operator =(const UserFunctionExecutionException& other);
104 
105  CacheableStringPtr m_message; //error message
106 
107  };
108 
109 
110 }
111 #endif
UserFunctionExecutionException(CacheableStringPtr msg)
constructors
Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a...
Definition: DataOutput.hpp:62
virtual int32_t classId() const
Return the classId of the instance being serialized.
CacheableStringPtr getName()
return as CacheableStringPtr the Exception name returned from gemfire sendException api...
Definition: UserFunctionExecutionException.hpp:94
UserFunctionExecutionException class is used to encapsulate gemfire sendException in case of Function...
Definition: UserFunctionExecutionException.hpp:22
static CacheableStringPtr create(const char *value, int32_t len=0)
Factory method for creating an instance of CacheableString from a null terminated C string optionally...
Definition: CacheableString.hpp:102
virtual void toData(DataOutput &output) const
serialize this object
virtual Serializable * fromData(DataInput &input)
deserialize this object, typical implementation should return the &#39;this&#39; pointer. ...
virtual uint32_t objectSize() const
return the size in bytes of the instance being serialized.
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
This abstract base class is the superclass of all user objects in the cache that can be serialized...
Definition: Serializable.hpp:39
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:44
CacheableStringPtr getMessage()
return as CacheableStringPtr the Exception message returned from gemfire sendException api...
Definition: UserFunctionExecutionException.hpp:87
virtual int8_t typeId() const
return the typeId byte of the instance being serialized.
virtual ~UserFunctionExecutionException()
public methods
Definition: UserFunctionExecutionException.hpp:32

GemFire C++ Cache API Documentation