Ejemplo n.º 1
0
 /// <summary>
 ///     Creates a custom error result object. Generally used to report outcomes of method work to calling clients.
 /// </summary>
 /// <param name="errorMessage">Custom error object that contains a code and description of the issue</param>
 /// <param name="errorRelatedObject">
 ///     Object that contains the status of T during the execution of the method, i.e. if the
 ///     result T is expected to be an organisation and the method failed, 'errorRelatedObject' can contain the status of
 ///     the organisation before the error happened - that way the calling client should be aware of the org causing the
 ///     issue.
 /// </param>
 public CustomResult(CustomError errorMessage, T errorRelatedObject)
     : this(errorMessage)
 {
     ErrorRelatedObject = errorRelatedObject;
 }
Ejemplo n.º 2
0
 public CustomResult(CustomError errorMessage)
 {
     ErrorMessage = errorMessage;
 }