errorcode

package
v0.0.0-...-b04e6a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2015 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_API_NOT_FOUND = errors.T(404, "api of {{.apiName}} not found.")
	ERR_BAD_REQUEST   = errors.T(400, "bad request, path: {{.path}}, raw error is: {{.err}}")

	ERR_JSON_MARSHAL_ERROR          = errors.T(1000, "marshal json error, raw error is: {{.err}}")
	ERR_REQUEST_SHOULD_BE_JSON      = errors.T(1001, "request data should be json format")
	ERR_COULD_NOT_NEW_COMPONENT_MSG = errors.T(1002, "could not new a component message, raw error is: {{.err}}")
	ERR_SEND_COMPONENT_MSG_ERROR    = errors.T(1003, "send component message error, id: {{.id}}, raw error is: {{.err}}")

	ERR_OPENFILE_ERROR           = errors.T(1004, "open file error, raw error is: {{.fileName}}, raw error is: {{.err}}")
	ERR_JSON_UNMARSHAL_ERROR     = errors.T(1005, "unMarshal json error, raw error is: {{.err}}")
	ERR_COMPONENT_NOT_EXIST      = errors.T(1006, "component not exist, name: {{.name}}")
	ERR_COMPONENT_HANDLER_IS_NIL = errors.T(1007, "component handler is nil")

	ERR_COMPONENT_METADATA_IS_NIL = errors.T(1008, "component metadata is nil")
	ERR_COMPONENT_MQTYPE_IS_EMPTY = errors.T(1009, "component mqtype is empty, name: {{.name}}")
	ERR_COMPONENT_IN_IS_EMPTY     = errors.T(1010, "component in is empty, name: {{.name}}")
	ERR_COULD_NOT_NEW_MSG_QUEUE   = errors.T(1011, "create new msg queue error, name: {{.name}}, MQType: {{.mqType}}")

	ERR_ZMQ_URL_IS_EMPTY             = errors.T(1012, "zmq's url is empty")
	ERR_NEW_ZMQ_FAILED               = errors.T(1013, "could not new zmq socket, url: {{.url}}, type: {{.type}}, raw error is: {{.err}}")
	ERR_ZMQ_COULD_NOT_BIND_URL       = errors.T(1014, "could not bind zmq socket to {{.url}}, type: {{.type}}, raw error is: {{.err}}")
	ERR_ZMQ_COULD_NOT_CONNECT_TO_URL = errors.T(1015, "could not connect to zmq socket to {{.url}}, type: {{.type}}, raw error is: {{.err}}")
	ERR_ZMQ_RECV_MSG_FAILED          = errors.T(1016, "recv zmq message failed, url: {{.url}}, raw error is: {{.err}}")
	ERR_ZMQ_RECV_MSG_INVALID         = errors.T(1017, "recv zmq message is invalid, url: {{.url}}")

	ERR_MESSENGER_REQ_ID_NOT_EXIST     = errors.T(1018, "messagener request id not exist, request id: {{.id}}, msg: {{.msg}}")
	ERR_COULD_NOT_PARSE_COMPONENT_MSG  = errors.T(1019, "could not parse component message, IN: {{.in}}, MQType: {{.mqType}}, msg: {{.msg}}")
	ERR_HANDLER_RETURN_ERROR           = errors.T(1020, "handler return error, component name: {{.name}}")
	ERR_COMPONENT_MSG_SERIALIZE_FAILED = errors.T(1021, "component serialize failed, IN: {{.in}}, MQType: {{.mqType}}, raw error: {{.err}}")

	ERR_GRAPH_NOT_EXIST                = errors.T(1022, "graph {{.name}} not exist")
	ERR_PARSE_COMMAND_TO_OBJECT_FAILED = errors.T(1023, "parse command {{.cmd}} error, raw error is: {{.err}}")
	ERR_CONFIG_TO_OBJECT_FAILED        = errors.T(1024, "config to object failed, raw error is: {{.err}}")
	ERR_MESSENGER_IS_NIL               = errors.T(1025, "messenger is nil, type: {{.type}}")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL