Skip to content

Taxum / @taxum/core / middleware/trace / ServerErrorAsFailureClassifier

Class: ServerErrorAsFailureClassifier

Defined in: middleware/trace.ts:59

Implements

Constructors

Constructor

new ServerErrorAsFailureClassifier(): ServerErrorAsFailureClassifier

Returns

ServerErrorAsFailureClassifier

Methods

classifyResponse()

classifyResponse(res): null | string

Defined in: middleware/trace.ts:60

Classify the response.

If the response is successful, return null. Otherwise, return a classification string for the response.

Parameters

res

HttpResponse

Returns

null | string

Implementation of

Classifier.classifyResponse