try {
myRuntimeEndpoint(myRequest);
} catch (error){
if(error instanceOf UnexpectedRuntimeResponse) {
console.error("The Runtime answered an unexpected message, please contact our desk support",error)
} else {
console.error("another type of error",error)
}
}

Hierarchy

  • Error
    • UnexpectedRuntimeResponse

Constructors

Properties

message: string
name: string
stack?: string
type: "UnexpectedRuntimeResponse" = ...
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void