UNPKG

@near-js/accounts

Version:

Classes encapsulating account-specific functionality

27 lines (26 loc) 912 B
class UnsupportedSerializationError extends Error { constructor(methodName, serializationType) { super(`Contract method '${methodName}' is using an unsupported serialization type ${serializationType}`); } } class UnknownArgumentError extends Error { constructor(actualArgName, expectedArgNames) { super(`Unrecognized argument '${actualArgName}', expected '${JSON.stringify(expectedArgNames)}'`); } } class ArgumentSchemaError extends Error { constructor(argName, errors) { super(`Argument '${argName}' does not conform to the specified ABI schema: '${JSON.stringify(errors)}'`); } } class ConflictingOptions extends Error { constructor() { super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods."); } } export { ArgumentSchemaError, ConflictingOptions, UnknownArgumentError, UnsupportedSerializationError };