SObjectizer  5.5
Namespaces | Variables
ret_code.hpp File Reference

Error codes. More...

#include <so_5/h/declspec.hpp>
#include <iostream>

Go to the source code of this file.

Namespaces

 so_5
 Public part of message limit implementation.
 

Variables

const int so_5::rc_environment_error = 1
 so_environment launch is failed. More...
 
const int so_5::rc_another_state_switch_in_progress = 170
 An attempt to switch agent state when another switch operation is in progress. More...
 
const int so_5::rc_autoshutdown_must_be_enabled = 171
 An attempt to launch environment with autoshutdown disabled in conditions where autoshutdown must be enabled. More...
 
const int so_5::rc_mutable_msg_cannot_be_delivered_via_mpmc_mbox = 172
 An attempt to deliver mutable message via MPMC mbox. More...
 
const int so_5::rc_mutable_msg_cannot_be_periodic = 173
 An attempt to send mutable message as a periodic message. More...
 
const int so_5::rc_subscription_to_mutable_msg_from_mpmc_mbox = 174
 An attempt to make subscription on mutable message from MPMC mbox. More...
 
const int so_5::rc_cannot_set_stop_guard_when_stop_is_started = 175
 An attempt to set up a new stop_guard when the stop operation is already in progress. More...
 
const int so_5::rc_negative_value_for_pause = 176
 An attempt to use negative value for pause argument for delayed or periodic message/signal. More...
 
const int so_5::rc_negative_value_for_period = 177
 An attempt to use negative value for period argument for periodic message/signal. More...
 
const int so_5::rc_transfer_to_state_loop = 178
 A loop in transfer_to_state detected. More...
 
const int so_5::rc_attempt_to_cast_to_envelope_on_nullptr = 180
 An attempt to cast message to message envelope when a pointer to message is NULL. More...
 
const int so_5::rc_unable_to_define_new_step = 181
 New step can't be defined if testing scenario is already started or finished. More...
 
const int so_5::rc_scenario_must_be_completed = 182
 Testing scenario must be completed before an attempt to do the current operation. More...
 
const int so_5::rc_stored_state_name_not_found = 183
 There is no stored state name in the testing scenario. More...
 
Error codes for agent's methods.
const int so_5::rc_agent_unknown_state = 10
 Trying to switch to the unknown state. More...
 
const int so_5::rc_agent_is_already_bind_to_env = 11
 Agent is already bound to the SObjectizer Environment. More...
 
const int so_5::rc_agent_is_already_bind_to_disp = 12
 Agent is already bound to the dispatcher. More...
 
const int so_5::rc_named_disp_not_found = 13
 Dispatcher with that name is not found. More...
 
const int so_5::rc_agent_has_no_cooperation = 14
 Agent is not bound to a cooperation. More...
 
const int so_5::rc_agent_incompatible_type_conversion = 15
 It is impossible to make a cast to that type. More...
 
const int so_5::rc_operation_enabled_only_on_agent_working_thread = 16
 An attempt to perform an operation which is enabled only on agent's working thread. More...
 
const int so_5::rc_no_initial_substate = 17
 An attempt to change agent state to a new composite state which have no initial state defined. More...
 
const int so_5::rc_state_nesting_is_too_deep = 18
 Nesting of agent states is too deep. More...
 
const int so_5::rc_initial_substate_already_defined = 19
 Initial substate for a composite state is already defined. More...
 
Error codes for cooperations of agents.
const int so_5::rc_zero_ptr_to_coop = 20
 A zero pointer is detected. More...
 
const int so_5::rc_coop_with_specified_name_is_already_registered = 21
 Cooperation name is not unique. More...
 
const int so_5::rc_coop_has_references_to_null_agents_or_binders = 22
 Cooperation has the null reference to an agent or dispatcher binding. More...
 
const int so_5::rc_coop_has_not_found_among_registered_coop = 23
 There is no registered cooperation with that name. More...
 
const int so_5::rc_coop_define_agent_failed = 24
 Cooperation couldn't be registered. More...
 
const int so_5::rc_coop_has_no_parent = 25
 Cooperation has no the parent cooperation. More...
 
const int so_5::rc_parent_coop_not_found = 26
 Parent cooperation not found. More...
 
const int so_5::rc_agent_to_disp_binding_failed = 27
 Binding of agent to dispatcher failed. More...
 
const int so_5::rc_unable_to_register_coop_during_shutdown = 28
 It is impossible to register cooperation during SObjectizer Environment shutdown. More...
 
Error codes for dispatchers.
const int so_5::rc_disp_start_failed = 30
 Unable to start a dispatcher. More...
 
const int so_5::rc_disp_create_failed = 31
 Unable to create a dispatcher. More...
 
const int so_5::rc_disp_type_mismatch = 32
 
const int so_5::rc_disp_cannot_be_added = 34
 New dispatcher cannot be added because of illegal state of SObjectizer Environment. More...
 
Error codes for event handlers and message interceptors registration.
const int so_5::rc_evt_handler_already_provided = 40
 A handler for that event/mbox/state is already registered. More...
 
const int so_5::rc_no_event_handler_provided = 41
 
const int so_5::rc_event_handler_match_error = 42
 Unable to deregister that handler. More...
 
const int so_5::rc_agent_is_not_the_state_owner = 43
 Agent doesn't own this state. More...
 
const int so_5::rc_intercept_handler_already_provided = 44
 An interceptor for the event/mbox/state is already registered. More...
 
const int so_5::rc_no_interception_handler_provided = 45
 
const int so_5::rc_interception_handler_match_error = 46
 Unable to deregister this interceptor. More...
 
const int so_5::rc_illegal_subscriber_for_mpsc_mbox = 47
 An attempt to create illegal subscription to mpsc_mbox. More...
 
const int so_5::rc_message_has_no_limit_defined = 48
 An attempt to create subscription to message without predefined limit for that message type. More...
 
const int so_5::rc_several_limits_for_one_message_type = 49
 An attempt to define several limits for one message type. More...
 
Error codes for mboxes.
const int so_5::rc_mbox_duplicating_name = 80
 The mbox name is not unique. More...
 
const int so_5::rc_mbox_unable_to_find_mbox = 81
 The name of mbox is unknown. More...
 
const int so_5::rc_null_message_data = 82
 Null message data. More...
 
const int so_5::rc_no_svc_handlers = 83
 No handlers for service request found. More...
 
const int so_5::rc_more_than_one_svc_handler = 84
 There are more then one handler for service request. More...
 
const int so_5::rc_svc_not_handled = 85
 Service request has not been handled. Service handler is disabled in the current agent state. More...
 
const int so_5::rc_svc_result_not_received_yet = 86
 Service request result has not beed received yet. More...
 
const int so_5::rc_msg_service_request_bad_cast = 87
 Unable to cast service call description object to the appropriate type. More...
 
const int so_5::rc_svc_request_cannot_be_transfomred_on_overlimit = 88
 Unable to transform service request as part of overlimit reaction. More...
 
const int so_5::rc_delivery_filter_cannot_be_used_on_mpsc_mbox = 89
 Delivery filter is not applicable to MPSC-mboxes. More...
 
Error codes for delayed or repeated events.
const int so_5::rc_unable_to_schedule_timer_act = 90
 Unable to schedule a timer event. More...
 
Error codes for layers.
const int so_5::rc_layer_not_binded_to_so_env = 100
 The layer is not bound to the SObjectizer Environment. More...
 
const int so_5::rc_trying_to_add_nullptr_extra_layer = 101
 Unable to bind a layer by the null pointer to it. More...
 
const int so_5::rc_trying_to_add_extra_layer_that_already_exists_in_default_list = 102
 The layer is already bound to the SObjectizer Environment as a default layer. More...
 
const int so_5::rc_trying_to_add_extra_layer_that_already_exists_in_extra_list = 103
 The layer is already bound to the SObjectizer Environment as an extra layer. More...
 
const int so_5::rc_unable_to_start_extra_layer = 104
 Layer initialization is failed. More...
 
const int so_5::rc_layer_does_not_exist = 105
 A layer with the specified type doesn't exist. More...
 
Error codes for priorities.
const int so_5::rc_priority_quote_illegal_value = 120
 Illegal value of quote for a priority. More...
 
Error codes for SObjectizer Environment related errors.
const int so_5::rc_msg_tracing_disabled = 140
 Message delivery tracing is disabled and cannot be used. More...
 
Error codes for message chains.
const int so_5::rc_msg_chain_is_empty = 160
 Attempt to get message from empty message queue. More...
 
const int so_5::rc_msg_chain_is_full = 161
 Attempt to push a message to full message queue. More...
 
const int so_5::rc_msg_chain_doesnt_support_subscriptions = 162
 Attempt to make subscription for message chain. More...
 
const int so_5::rc_msg_chain_doesnt_support_delivery_filters = 163
 Attempt to set delivery_filter for message chain. More...
 
const int so_5::rc_msg_chain_overflow = 164
 
const int so_5::rc_several_handlers_for_one_message_type = 165
 Attempt to define several handlers for one msg_type. More...
 
Common error codes.
const int so_5::rc_empty_name = 500
 The empty name doesn't allowed. More...
 
const int so_5::rc_invalid_time_limit_for_state = 501
 Invalid value of time limit for an agent's state. More...
 
const int so_5::rc_not_implemented = 502
 Feature or method has no implementation yet. More...
 
const int so_5::rc_unknown_exception_type = 503
 An exception of unknown type is caught. More...
 
const int so_5::rc_unexpected_error = 0xFFFFFF
 Unclassified error. More...
 

Detailed Description

Error codes.