pub fn encode<T>(error: &T) -> SerializableErrorwhere T: ErrorType + Serialize,
Encodes a Conjure error into its serialized form.
The error’s instance ID will be randomly generated.
Panics if the error type does not serialize as a struct.