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