Error

Required: yes Default: Make shows a generic message

The error directive specifies the error type and the error message to show the user.

You are also able to specify different error messages based on different status codes. The error object has the following attributes:

Key

Type

Description

IML String

An expression that parses an error message from response body.

IML String

An expression that specifies the error type.

Error Specification

An object that customizes the error message and type based on the status code.

See Error Handling for more details.

message

Required: yes

The error.message directive specifies the message that the error will contain. It can be a statically specified string, or it can point to a message in, for example, a response body or headers.

type

Required: no Default: RuntimeError

The error.type directive specifies a type of error message. Different error types are handled differently by Make. The default error type is RuntimeError. You can read about all available error types in the list below.

<status-code>

Required: no

You are able to specify custom errors for different status codes by specifying the status code as the key in the error directive object, and using the same error specification as a value.

Here can be found a list of Available Error Types.

Last updated