Classkitv0.1.1
Notice
Base class for a user-facing refusal or a reported fault.
Throw a NoticeNotice to stop a handler and reply to the user. The framework catches it at the controller boundary and renders renderrender, which always decides what the user sees. With reportreport false that render is all that happens. With reportreport true the framework also logs the fault and publishes it to the handledExceptionhandledException bus. A raw, non-Notice throw shows the generic message.
Member visibility
Filter class members by access level.
protected Notice(message: string, options?: ErrorOptions)protected Notice(message: string, options?: ErrorOptions)Whether this denial is a reported fault. True also logs it and publishes it to the handledExceptionhandledException bus. The user always sees renderrender either way.
public abstract render(ctx: RenderContext): ReplyResponsepublic abstract render(ctx: RenderContext): ReplyResponse