src/sap/pdms/ipro/api/errors.js
export class IproApiError extends Error {
constructor(message) {
super(message || 'An unspecified ipro api error occured.');
}
}
export class VariantNotFoundError extends IproApiError {
constructor(variantId) {
super(`A variant with id: ${variantId} could not be found.`);
this.variantId = variantId;
}
}
export class SetContextError extends IproApiError {
constructor(context) {
super(`An error occured while attempting to set the context`);
this.context = context;
}
}