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