Last one in my series of proposed improvements to ServerFnError: we could provide a conversion from ServerFnError<OldCustErr> to ServerFnError<NewCustErr> if NewCustErr: From<OldCustErr>. Something like:
The typical use-case I have is helper functions that can fail in one or two ways, shared by multiple server functions that can also fail in other ways.
Last one in my series of proposed improvements to
ServerFnError
: we could provide a conversion fromServerFnError<OldCustErr>
toServerFnError<NewCustErr>
ifNewCustErr: From<OldCustErr>
. Something like:The typical use-case I have is helper functions that can fail in one or two ways, shared by multiple server functions that can also fail in other ways.