from(e: unknown): Err<Error>
Converts any unknown value into an Error object.
This function handles two cases uniquely:
- If the input is already an Error, it's returned as-is.
- If the input is a non-null object, it's stringified and wrapped in an Error.
For all other types, the input is coerced to a string and wrapped in an Error.