{"modulePath":"github.com/xigang/casper","version":"v0.0.0-20150304025127-9aabd52a836d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errorcode\n\n## Variables\n\n```go\nvar (\n\tERR_API_NOT_FOUND = errors.T(404, \"api of {{.apiName}} not found.\")\n\tERR_BAD_REQUEST   = errors.T(400, \"bad request, path: {{.path}}, raw error is: {{.err}}\")\n\n\tERR_JSON_MARSHAL_ERROR          = errors.T(1000, \"marshal json error, raw error is: {{.err}}\")\n\tERR_REQUEST_SHOULD_BE_JSON      = errors.T(1001, \"request data should be json format\")\n\tERR_COULD_NOT_NEW_COMPONENT_MSG = errors.T(1002, \"could not new a component message, raw error is: {{.err}}\")\n\tERR_SEND_COMPONENT_MSG_ERROR    = errors.T(1003, \"send component message error, id: {{.id}}, raw error is: {{.err}}\")\n\n\tERR_OPENFILE_ERROR           = errors.T(1004, \"open file error, raw error is: {{.fileName}}, raw error is: {{.err}}\")\n\tERR_JSON_UNMARSHAL_ERROR     = errors.T(1005, \"unMarshal json error, raw error is: {{.err}}\")\n\tERR_COMPONENT_NOT_EXIST      = errors.T(1006, \"component not exist, name: {{.name}}\")\n\tERR_COMPONENT_HANDLER_IS_NIL = errors.T(1007, \"component handler is nil\")\n\n\tERR_COMPONENT_METADATA_IS_NIL = errors.T(1008, \"component metadata is nil\")\n\tERR_COMPONENT_MQTYPE_IS_EMPTY = errors.T(1009, \"component mqtype is empty, name: {{.name}}\")\n\tERR_COMPONENT_IN_IS_EMPTY     = errors.T(1010, \"component in is empty, name: {{.name}}\")\n\tERR_COULD_NOT_NEW_MSG_QUEUE   = errors.T(1011, \"create new msg queue error, name: {{.name}}, MQType: {{.mqType}}\")\n\n\tERR_ZMQ_URL_IS_EMPTY             = errors.T(1012, \"zmq's url is empty\")\n\tERR_NEW_ZMQ_FAILED               = errors.T(1013, \"could not new zmq socket, url: {{.url}}, type: {{.type}}, raw error is: {{.err}}\")\n\tERR_ZMQ_COULD_NOT_BIND_URL       = errors.T(1014, \"could not bind zmq socket to {{.url}}, type: {{.type}}, raw error is: {{.err}}\")\n\tERR_ZMQ_COULD_NOT_CONNECT_TO_URL = errors.T(1015, \"could not connect to zmq socket to {{.url}}, type: {{.type}}, raw error is: {{.err}}\")\n\tERR_ZMQ_RECV_MSG_FAILED          = errors.T(1016, \"recv zmq message failed, url: {{.url}}, raw error is: {{.err}}\")\n\tERR_ZMQ_RECV_MSG_INVALID         = errors.T(1017, \"recv zmq message is invalid, url: {{.url}}\")\n\n\tERR_MESSENGER_REQ_ID_NOT_EXIST     = errors.T(1018, \"messagener request id not exist, request id: {{.id}}, msg: {{.msg}}\")\n\tERR_COULD_NOT_PARSE_COMPONENT_MSG  = errors.T(1019, \"could not parse component message, IN: {{.in}}, MQType: {{.mqType}}, msg: {{.msg}}\")\n\tERR_HANDLER_RETURN_ERROR           = errors.T(1020, \"handler return error, component name: {{.name}}\")\n\tERR_COMPONENT_MSG_SERIALIZE_FAILED = errors.T(1021, \"component serialize failed, IN: {{.in}}, MQType: {{.mqType}}, raw error: {{.err}}\")\n\n\tERR_GRAPH_NOT_EXIST                = errors.T(1022, \"graph {{.name}} not exist\")\n\tERR_PARSE_COMMAND_TO_OBJECT_FAILED = errors.T(1023, \"parse command {{.cmd}} error, raw error is: {{.err}}\")\n\tERR_CONFIG_TO_OBJECT_FAILED        = errors.T(1024, \"config to object failed, raw error is: {{.err}}\")\n\tERR_MESSENGER_IS_NIL               = errors.T(1025, \"messenger is nil, type: {{.type}}\")\n)\n```\n\n","path":"github.com/xigang/casper/errorcode","name":"errorcode","synopsis":"","isRedistributable":true}
