47 :
PyObjectEx_Type1( new
PyToken(
"exceptions.GPSTransportClosed" ), _CreateArgs( reason ), _CreateKeywords( reason ) )
52 :
PyObjectEx_Type1( new
PyToken(
"exceptions.GPSTransportClosed" ), _CreateArgs( reason.c_str() ), _CreateKeywords( reason.c_str() ) )
116 if (value2 !=
nullptr)
158 if (separator ==
nullptr)
UserError & AddTimeShort(const char *name, time_t time)
Shorthand method for adding the given time as a time string in the message (without minutes) ...
PyRep * GetItem(size_t index) const
Returns Python object.
static const char *const EVEProjectCodename
PyRep * GetItemString(const char *key) const
Obtains database entry based on given key string.
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.
Python floating point number.
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.
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)
static const uint16 MachoNetVersion
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,...)
int vasprintf(char **strp, const char *fmt, va_list ap)
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.
void SafeFree(T *&p)
Frees and nullifies an array pointer.
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)
static const double EVEVersionNumber
UserError_ParameterIDs
Enumeration that indicates what parameters can be sent along with an UserError.
PyDict * GetReasonArgs() const
static const int32 EVEBuildVersion
void SetItem(size_t index, PyRep *object)
Stores Python object.
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.
PyRep * FindKeyword(const char *keyword) const
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.
Python token (eg. class name).
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.
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.
static const char *const EVEProjectRegion
PyException & operator=(const PyException &oth)
static const char * EXCEPTION_NAME
void SetItemString(const char *key, PyRep *value)
SetItemString adds or sets a database entry.
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.