@contract-case/case-core
Version:
Core functionality for the ContractCase contract testing suite
27 lines • 1.26 kB
TypeScript
import { MatchContext, ConfigurationError, CaseTriggerError, TriggerError, VerifyTriggerReturnObjectError, VerificationError } from '@contract-case/case-plugin-base';
/**
* This represents an error during execution of an example due to user configuration.
*
* @param error - The error thrown
* @param context - the context that the error was in
* @returns ExecutionError
*/
export declare const configurationError: (error: Error, context: MatchContext) => ConfigurationError;
/**
* This represents an error thrown by user code during execution of an example
* (eg, when a user's trigger is called)
* @param error - The error thrown
* @param context - the context that the error was in
* @returns ExecutionError
*/
export declare const triggerError: (error: CaseTriggerError, context: MatchContext) => TriggerError;
/**
* This represents an error thrown during verification using the provided
* verification function
*
* @param error - The VerifyTriggerReturnObjectError from the verification
* @param context - the context that the error was in
* @returns VerificationError
*/
export declare const verificationError: (error: VerifyTriggerReturnObjectError, context: MatchContext) => VerificationError;
//# sourceMappingURL=MatchingError.d.ts.map