@contract-case/case-plugin-base
Version:
Plugin framework for writing plugins for the ContractCase test framework
40 lines • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ERROR_TYPE_TEST_RESPONSE = exports.ERROR_TYPE_TRIGGER = exports.ERROR_TYPE_CONFIGURATION = exports.ERROR_TYPE_RAW_MATCH = exports.ERROR_TYPE_MATCHING = void 0;
// ************************************************************
// Warning: **ALL** of the following error types must be listed
// in the function in the core's handlers.ts
//
// DO NOT MODIFY THIS FILE WITHOUT ALSO MODIFYING
// handlers.ts in CaseCore
// ************************************************************
/**
* Represents an error from a matcher. The values passed to `actual` and `expected`
* in a matching error are automatically serialised for pretty printing in error messages.
*
* @public
*/
exports.ERROR_TYPE_MATCHING = 'MATCHING_ERROR';
/**
* Represents an error that would be from a matcher, but there's no physical matcher.
* Otherwise identical to {@link ERROR_TYPE_MATCHING}.
*
* @public
*/
exports.ERROR_TYPE_RAW_MATCH = 'RAW_MATCH_ERROR';
/**
* Represents an error because of configuration during test execution
* @public
*/
exports.ERROR_TYPE_CONFIGURATION = 'CONFIGURATION_ERROR';
/**
* Represents an error because of the user supplied trigger
* @public
*/
exports.ERROR_TYPE_TRIGGER = 'TRIGGER_FUNCTION_ERROR';
/**
* Represents an error during the testResponse or testErrorResponse function
* @public
*/
exports.ERROR_TYPE_TEST_RESPONSE = 'TEST_RESPONSE_ERROR';
//# sourceMappingURL=errors.types.js.map