Skip to main content

http.getException

http.getException()

Description

Gets the exception thrown by the last request.

Example

http = option.http

try {
res = http.get(url)
} catch (Exception e){
exception = http.getException()
api.sendAlarm("ci", "element", "eltype", "Failed HTTP GET", exception: " + exception, "4", "CRITICAL")
}