Skip to content

Documentation


Documentation / @blazetrails/rack / ShowExceptions

Class: ShowExceptions ​

Defined in: packages/rack/lib/show-exceptions.ts:405

Constructors ​

Constructor ​

new ShowExceptions(app): ShowExceptions

Defined in: packages/rack/lib/show-exceptions.ts:410

Parameters ​

ParameterType
appRackApp | { call: RackApp; }

Returns ​

ShowExceptions

Properties ​

CONTEXT ​

readonly static CONTEXT: 7 = 7

Defined in: packages/rack/lib/show-exceptions.ts:406


TEMPLATE ​

readonly static TEMPLATE: (__namedParameters) => string

Defined in: packages/rack/lib/show-exceptions.ts:516

Parameters ​

ParameterType
__namedParametersTemplateBinding

Returns ​

string

Methods ​

call() ​

call(env): Promise<[number, RackHeaders, any]>

Defined in: packages/rack/lib/show-exceptions.ts:418

Parameters ​

ParameterType
envRecord<string, any>

Returns ​

Promise<[number, RackHeaders, any]>


dumpException() ​

dumpException(exception): string

Defined in: packages/rack/lib/show-exceptions.ts:445

Parameters ​

ParameterType
exceptionError

Returns ​

string


h() ​

h(obj): string

Defined in: packages/rack/lib/show-exceptions.ts:508

Parameters ​

ParameterType
objany

Returns ​

string

Missing Rails Name ​

inspect — PERMANENT


prefersPlaintext() ​

prefersPlaintext(env): boolean

Defined in: packages/rack/lib/show-exceptions.ts:414

Parameters ​

ParameterType
envRecord<string, any>

Returns ​

boolean


pretty() ​

pretty(env, exception): string

Defined in: packages/rack/lib/show-exceptions.ts:456

Parameters ​

ParameterType
envRecord<string, any>
exceptionError

Returns ​

string


template() ​

protected template(): (binding) => string

Defined in: packages/rack/lib/show-exceptions.ts:503

Returns ​

(binding) => string