Exceptions

exception ourdestiny.exceptions.ItemCannotBeInstanced(item)

Exception for when an attempt is made to instance an item, but it has no instance ID, and cannot be instanced

exception ourdestiny.exceptions.ItemDoesNotBelongToCharacter(item, character)

Exception for when an operation performed on an item involving the owner of that item is faced with another character, or that item has no owner

Variables:
exception ourdestiny.exceptions.ItemNotFound(item, message)

Exception for when an item is referenced but does not appear to exist

Variables:
  • item (ourdestiny.d2item) – The item in question
  • message (string) – The error message obtained from the API
exception ourdestiny.exceptions.ItemNotInBucket(item)

Exception for when an item is in a different bucket than expected

Variables:item (ourdestiny.d2item) – The item involved in the mixup
exception ourdestiny.exceptions.ItemNotInstanced(item)

Exception for when an operation requires an item be instanced, but it is not

exception ourdestiny.exceptions.NoRoomInDestination(item, message)

Exception for an operation where an item is moved, but there is no room for that item in the destination

Variables:
  • item (ourdestiny.d2item) – The item in question
  • message (string) – The error message given by the API
exception ourdestiny.exceptions.OurDestinyError

Base exception class for custom exceptions

exception ourdestiny.exceptions.StatesDoNotMatch

Exception for when the cross-site forgery mitigation test fails