Creates a ContactsException with a message and optional error code
const ContactsException(this.message, [this.code]);