26 #ifndef __PY_EXCEPTIONS_H__INCL__
27 #define __PY_EXCEPTIONS_H__INCL__
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(const char *exceptionType)
UserError & AddGroupDescription(const char *name, uint32 groupID)
Shorthand method for adding a group's description.
UserError & AddFormatValue(const char *name, PyRep *value)
Fluent version of the protected AddKeyword, allows for adding a keyword to the exception.
UserError & AddDistance(const char *name, double distance)
Shorthand method for adding distance in a easy to read unit.
Advanced version of UserError that allows to send a full custom message.
static PyTuple * _CreateArgs(const char *reason)
PyTuple * _CreateArgs(const char *msg)
UserError & AddOwnerNick(const char *name, uint32 ownerID)
Shorthand method for adding an owner's nick (first name without surname)
PyDict * _GetDictKeywords() const
void AddKeyword(const char *name, PyRep *value)
Adds keyword to exception.
UserError & AddISK(const char *name, double isk)
Shorthand method for adding an ISK amount.
CustomError(const char *message,...)
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 & AddParameterKeyword(const char *name, UserError_ParameterIDs type, PyRep *value, PyRep *value2=nullptr)
Adds a keyword to exception.
UserError & AddAmount(const char *name, int quantity)
Shorthand method for adding a quantity value.
Base class for exceptions that can be converted to python objects.
GPSTransportClosed(const char *reason)
UserError_ParameterIDs
Enumeration that indicates what parameters can be sent along with an UserError.
PyDict * GetReasonArgs() const
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.
PyException(PyRep *except)
static PyDict * _CreateKeywords(const char *reason)
UserError & AddAUR(const char *name, double aur)
Shorthand method for adding an AUR amount.
static const char * EXCEPTION_NAME
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.
PyDict * _GetTupleKeywords() const
Python object "ccp_exceptions.UserError".
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 & AddList(const char *name, PyList *listEntries, const char *separator=nullptr)
Shorthand method for adding a list of format parameters.
Wrapper class for PyObjectEx of type 1.
PyDict * _CreateKeywords(const char *msg)
UserError & AddTypeList(const char *name, PyList *typeIDs)
Shorthand method for adding a list of types' names.
Python object "exceptions.GPSTransportClosed".
void AddKeyword(const char *name, PyRep *value)
Adds keyword to exception.
UserError & AddBlueprintTypeName(const char *name, uint32 bpTypeID)
Shorthand method for adding a blueprint's type name.
PyException & operator=(const PyException &oth)
static const char * EXCEPTION_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.