presto-main/src/main/java/io/prestosql/execution/Failure.java/Failure/Failure
class Failure:    Failure(String type, String message, @Nullable ErrorCode errorCode, Failure cause)
    {
        super(message, cause);
        this.type = requireNonNull(type, "type is null");
        this.errorCode = errorCode;
    }