UNPKG

@astro-utils/forms

Version:

Server component for Astro (call server functions from client side with validation and state management)

8 lines (7 loc) 260 B
import ThrowAction from "./throw-action.js"; export default class ThrowOverrideResponse extends ThrowAction { constructor(response, message = 'An error occurred, please try again later.') { super(message); this.response = response; } }