This class is used for more transparent error
handling. It is thrown, notably by the Factory.parseJSON
method that gets called internally when creating contract
instances from JSON payloads.
This error is thrown when the attached JSON payload is
not represented as a valid JSON object.
example
Throwing an InvalidContractError error
thrownewInvalidContractError("This JSON payload is invalid.");
This class is used for more transparent error handling. It is thrown, notably by the Factory.parseJSON method that gets called internally when creating contract instances from JSON payloads.
This error is thrown when the attached JSON payload is not represented as a valid JSON object.
Throwing an
InvalidContractError
errorOther links
Factory.parseJSON
v0.3.0