ToolException

constructor(message: String, cause: Throwable?)

Creates a ToolException with a specified error message and an optional cause.

Parameters

message

A message describing the error encountered.

cause

The underlying cause of the error, if any.