48 #ifndef _MIRA_RPCERROR_H_ 49 #define _MIRA_RPCERROR_H_ 53 #include <serialization/adapters/boost/shared_ptr.hpp> 76 class XRPC :
public XRuntime
84 XRPC(
const std::string& msg,
const char*
file=NULL,
int line=0) :
85 XRuntime(msg,
file, line) {}
89 template<
typename Reflector>
95 virtual void raise(
bool recursive =
false)
Invalid parameters were specified for the method.
Definition: RPCError.h:68
PropertyHint file(const std::string &filters=std::string(), bool save=false)
Tells the property editor that the path is for a file, and that it should show a "File Open"/"File Sa...
Definition: Path.h:247
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
#define MIRA_REFLECT_BASE(reflector, BaseClass)
Macro that can be used to reflect the base class easily.
Definition: ReflectorInterface.h:912
SerializableExceptionPtr origException
Definition: RPCError.h:112
void reflect(Reflector &r)
Definition: RPCError.h:90
bool hasOrigException()
Definition: RPCError.h:108
Contains the base interface of all Reflectors, Serializers, etc.
Commonly used exception classes.
An exception that is thrown by the RPCServer if an RPC call fails.
Definition: RPCError.h:76
An exception has occurred within the method that was called.
Definition: RPCError.h:69
XRPC(const std::string &msg, const char *file=NULL, int line=0)
Definition: RPCError.h:84
virtual ~XRPC() MIRA_NOEXCEPT_OR_NOTHROW
Definition: RPCError.h:87
#define MIRA_NOEXCEPT_OR_NOTHROW
Definition: NoExcept.h:99
RPCError
enumeration of possible reasons for errors/exceptions while performing an RPC call ...
Definition: RPCError.h:64
#define MIRA_OBJECT(classIdentifier)
Use this MACRO if you like the factory to automatically extract the class name from the given identif...
Definition: FactoryMacros.h:179
void setOrigException(SerializableException *ex)
takes ownership of ex
Definition: RPCError.h:106
boost::shared_ptr< SerializableException > SerializableExceptionPtr
Definition: Exceptions.h:142
void raiseOrigException(bool recursive=false)
Definition: RPCError.h:109
Requested method was not found.
Definition: RPCError.h:67
XRPC()
Definition: RPCError.h:81
friend class ClassFactoryDefaultConstClassBuilder
Definition: RPCError.h:80
The request is invalid or can not be parsed.
Definition: RPCError.h:66
Definition: Exceptions.h:85
void setOrigException(SerializableExceptionPtr ex)
Definition: RPCError.h:107