error.h File Reference
Description
Predefined error codes used by the neuray services API.
Code Example
error.h
//*****************************************************************************
// Copyright 1986-2011 by mental images GmbH, Fasanenstr. 81, D-10623 Berlin,
// Germany. All rights reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef MI_NSERVICES_ERROR_H
#define MI_NSERVICES_ERROR_H
namespace mi {
namespace nservices {
// General errors
static const Sint32
NRS_ERROR_NONE = 0;
static const Sint32
NRS_ERROR_FAILED = -1;
static const Sint32
NRS_ERROR_INVALID_PARAMETERS = -2;
static const Sint32
NRS_ERROR_INVALID_OPERATION = -3;
static const Sint32
NRS_ERROR_MEMORY = -4;
static const Sint32
NRS_ERROR_NOT_FOUND = -5;
static const Sint32
NRS_ERROR_NEURAY = -6;
// Event errors
static const Sint32
NRS_ERROR_EVENT_NO_HANDLERS = -1001;
static const Sint32
NRS_ERROR_EVENT_HANDLER_NAME_INVALID = -1002;
// Command errors
static const Sint32
NRS_ERROR_COMMAND_NEURAY_ERROR = -32099;
static const Sint32
NRS_ERROR_COMMAND_PERMISSION_DENIED = -32098;
static const Sint32
NRS_ERROR_COMMAND_NOT_FOUND = -32601;
static const Sint32
NRS_ERROR_COMMAND_INVALID_PARAMS = -32602;
// end group mi_nservices_error
} // namespace nservices
} // namespace mi
#endif // MI_NSERVICES_ERROR_H
Namespaces
- namespace mi
- namespace
- Namespace for the neuray Services API. More...
Variables
- static const
- Invalid arguments to command. More...
- static const
- Internal neuray error while executing command. More...
- static const
- Requested command is unknown. More...
- static const
- User does not have permission to execute the given command. More...
- static const
- No event handler with this name has been registered. More...
- static const
- No event handlers have been registered for this event type. More...
- static const
- General failure. More...
- static const
- The requested operation is invalid for the current state. More...
- static const
- A passed parameter was invalid. More...
- static const
- Insufficient memory. More...
- static const
- The neuray library reported an error state. More...
- static const
- No error. More...
- static const
- Not found. More...