Construct a SaveAction.
A function that accepts a ErrorCode that describes the nature of the failure and an optional Throwable.