Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/next_php/src/deps.ts>ejs.RethrowCallback

NextPHP is a web framework enabling you to write PHP in JavaScript.
Latest
type alias ejs.RethrowCallback
import { type ejs } from "https://deno.land/x/next_php@1.1.2/src/deps.ts";
const { RethrowCallback } = ejs;

This type of callback is used when Options.compileDebug is true, and an error in the template is thrown.

By default it is used to rethrow an error in a better-formatted way.

definition: (
err: Error,
str: string,
filename: string | null | undefined,
lineno: number,
) => never