Extend the APIError class to print a message to the server log, and then throw the error
Log message to the server log and throw a APIError
optional callback for the case when client application code is not using promises
Extend the APIError class to print a message to the server log, and then throw the error