Exemple #1
0
 private VmExecutionResult(object result,
                           string type = null,
                           ContractErrorMessage error = null)
 {
     this.Result       = result;
     this.Type         = type;
     this.ErrorMessage = error;
 }
Exemple #2
0
 public VmExecutionError(VmExecutionErrorKind errorKind, ContractErrorMessage errorMessage)
 {
     this.ErrorKind = errorKind;
     this.Message   = errorMessage;
 }
 public StateTransitionError(RuntimeObserver.Gas gasConsumed, StateTransitionErrorKind kind, ContractErrorMessage vmError)
 {
     this.Kind        = kind;
     this.GasConsumed = gasConsumed;
     this.VmError     = vmError;
 }
 /// <summary>
 /// Creates a new result for a failed state transition due to a VM exception.
 /// </summary>
 public static StateTransitionResult Fail(Gas gasConsumed, ContractErrorMessage vmError)
 {
     return(new StateTransitionResult(new StateTransitionError(gasConsumed, StateTransitionErrorKind.VmError, vmError)));
 }
Exemple #5
0
 private ContractInvocationResult(ContractInvocationErrorType errorType, ContractErrorMessage errorMessage)
 {
     this.IsSuccess           = false;
     this.InvocationErrorType = errorType;
     this.ErrorMessage        = errorMessage;
 }
Exemple #6
0
 public static VmExecutionResult Error(ContractErrorMessage error)
 {
     return(new VmExecutionResult(null, null, error));
 }