/// <summary> /// Constructs a new BackblazeB2ActionResult to represent a result from a call to the B2 server /// </summary> /// <param name="result">The result of the call</param> /// <param name="error">The error that the call produced</param> public BackblazeB2ActionResult(Maybe <TResult> result, BackblazeB2ActionErrorDetails error) : this(result, new[] { error }) { }
/// <summary> /// Constructs a new BackblazeB2ActionResult with just one error detail and default to "Nothing" for the result /// </summary> /// <param name="error">The error to save to this result</param> public BackblazeB2ActionResult(BackblazeB2ActionErrorDetails error) : this(Maybe <TResult> .Nothing, error) { }