@suspensive/react
Version:
Suspensive interfaces for react
21 lines (19 loc) • 1.91 kB
JavaScript
//#region src/models/SuspensiveError.ts
var SuspensiveError = class SuspensiveError extends Error {
static assert(condition, message) {
if (!condition) throw new SuspensiveError(message);
}
};
const Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children = "useErrorBoundary: this hook should be called in ErrorBoundary.props.children";
const Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback = "useErrorBoundaryFallbackProps: this hook should be called in ErrorBoundary.props.fallback";
const Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children = "useErrorBoundaryGroup: this hook should be called in ErrorBoundary.props.children";
const Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0 = "Delay: ms prop should be greater than or equal to 0";
const Message_DefaultProp_delay_ms_should_be_greater_than_0 = "DefaultProps: delay.ms should be greater than 0";
//#endregion
exports.Message_DefaultProp_delay_ms_should_be_greater_than_0 = Message_DefaultProp_delay_ms_should_be_greater_than_0;
exports.Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0 = Message_Delay_ms_prop_should_be_greater_than_or_equal_to_0;
exports.Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback = Message_useErrorBoundaryFallbackProps_this_hook_should_be_called_in_ErrorBoundary_props_fallback;
exports.Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children = Message_useErrorBoundaryGroup_this_hook_should_be_called_in_ErrorBoundary_props_children;
exports.Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children = Message_useErrorBoundary_this_hook_should_be_called_in_ErrorBoundary_props_children;
exports.SuspensiveError = SuspensiveError;
//# sourceMappingURL=SuspensiveError.cjs.map