API Docs for: 0.8.0
Show:

PBError Class

Specialized application error that knows what status code to return

Item Index

Methods

setLocalizationKey

(
  • key
)
Object

Sets the localization key for the error

Parameters:

  • key String

    The localization key

Returns:

Object:

The PBError object

setSource

(
  • err
)
Object

Sets the source for the error

Parameters:

  • err Object

    The error source

Returns:

Object:

The PBError object