51 if(pFile = fopen(EVEMU_ROOT
"/etc/devtools.raw",
"rb"))
53 fseek(pFile, 0, SEEK_END);
54 int size = ftell(pFile);
55 char * buf =
new char[size];
56 fseek(pFile, 0, SEEK_SET);
57 fread(buf, 1, size, pFile);
66 Call_SingleIntegerArg arg;
68 if (arg.Decode (call.
tuple) ==
false)
70 codelog(SERVICE__ERROR,
"%s: Failed to decode bind args.",
GetName());
97 throw UserError (
"SalvagingTooComplex").
AddA (
"type",
"HELLO!");
130 throw CustomError (
"This is a custom error, arguments: %s, %d",
"Hello world!", 500);
Dispatcher *const m_dispatch
UserError & AddTimeShort(const char *name, time_t time)
Shorthand method for adding the given time as a time string in the message (without minutes) ...
UserError & AddThe(const char *name, const char *value)
Shorthand method for adding "the" before the beginning of the value.
UserError & AddCategoryName(const char *name, uint32 categoryID)
Shorthand method for adding a category's name.
UserError & AddTypeIDAndQuantity(const char *name, uint32 typeID, int quantity)
Shorthand method for adding type ID and quantity.
UserError & AddTypeName(const char *name, uint32 typeID)
Shorthand method for adding a type's name.
UserError & AddGroupDescription(const char *name, uint32 groupID)
Shorthand method for adding a group's description.
UserError & AddDistance(const char *name, double distance)
Shorthand method for adding distance in a easy to read unit.
const char * GetName() const
Advanced version of UserError that allows to send a full custom message.
UserError & AddOwnerNick(const char *name, uint32 ownerID)
Shorthand method for adding an owner's nick (first name without surname)
UserError & AddISK(const char *name, double isk)
Shorthand method for adding an ISK amount.
UserError & AddTime(const char *name, time_t time)
Shorthand method for adding the given date time as a time string in the message.
UserError & AddGroupName(const char *name, uint32 groupID)
Shorthand method for adding a group's name.
UserError & AddAmount(const char *name, int quantity)
Shorthand method for adding a quantity value.
const int64 Win32Time_Hour
#define codelog(type, fmt,...)
UserError & AddTypeDescription(const char *name, uint32 typeID)
Shorthand method for adding a type's description.
UserError & AddOwnerName(const char *name, uint32 ownerID)
Shorthand method for adding an owner's name.
void SetItem(size_t index, PyRep *object)
Stores Python object.
UserError & AddAUR(const char *name, double aur)
Shorthand method for adding an AUR amount.
UserError & AddUELocalization(const char *name, const char *strKey, PyDict *args=nullptr)
Shorthand method for adding a string in the client's translations.
UserError & AddA(const char *name, const char *value)
Shorthand method for adding "a" before the beginning of the value.
Python object "ccp_exceptions.UserError".
#define PyCallable_REG_CALL(c, m)
UserError & AddDateTime(const char *name, time_t date)
Shorthand method for adding the given date-time as a datetime string in the message.
UserError & AddCategoryDescription(const char *name, uint32 categoryID)
Shorthand method for adding a category's description.
UserError & AddTypeList(const char *name, PyList *typeIDs)
Shorthand method for adding a list of types' names.
const int64 Win32Time_Minute
int32 GetStationID() const
UserError & AddBlueprintTypeName(const char *name, uint32 bpTypeID)
Shorthand method for adding a blueprint's type name.
UserError & AddLocationName(const char *name, uint32 locationID)
Shorthand method for adding a location's name.
UserError & AddDate(const char *name, time_t date)
Shorthand method for adding the given date time as a date string in the message.