attributes-kit
Version:
React component for MSON rendering
17 lines (12 loc) • 425 B
JavaScript
import dedent from 'dedent';
function MissingCacheObjectException(element) {
this.name = 'MissingCacheObjectException';
this.message = dedent`
The element is missing the ‘cache’ object. Please check that the the Refract \
tree has been preprocessed. Element is ‘${JSON.stringify(element, null, 2)}’.
`;
}
MissingCacheObjectException.prototype = new Error;
export {
MissingCacheObjectException,
};