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