This class is used for more transparent error
handling. It is thrown, notably by the Factory.buildContract
method that gets called internally when creating contract
instances from JSON payloads or transactions.
This error is thrown when the attached contract inputs and
contract body are missing one or more obligatory fields.
example
Throwing an MissingContractFieldError error
thrownewMissingContractFieldError("This field is missing but it is required.");
This class is used for more transparent error handling. It is thrown, notably by the Factory.buildContract method that gets called internally when creating contract instances from JSON payloads or transactions.
This error is thrown when the attached contract inputs and contract body are missing one or more obligatory fields.
Throwing an
MissingContractFieldError
errorOther links
Factory.buildContract
v0.3.0