private VmExecutionResult(object result, string type = null, ContractErrorMessage error = null) { this.Result = result; this.Type = type; this.ErrorMessage = error; }
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))); }
private ContractInvocationResult(ContractInvocationErrorType errorType, ContractErrorMessage errorMessage) { this.IsSuccess = false; this.InvocationErrorType = errorType; this.ErrorMessage = errorMessage; }
public static VmExecutionResult Error(ContractErrorMessage error) { return(new VmExecutionResult(null, null, error)); }