Creates an exception with a wire code and an optional message.
code
message
const XAudioSinkException(this.code, [this.message]);