cBots can override the OnError(Error error)
method to handle exceptions in trading operations. This event is called whenever a trade operation fails (e.g. order rejected). The documentation states: “OnError – Called if there is an error executing a trade operation.”