com.newrelic.agent.errors.ErrorService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-agent Show documentation
Show all versions of newrelic-agent Show documentation
The New Relic Java agent for full-stack observability
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.errors;
import com.newrelic.agent.service.EventService;
import com.newrelic.agent.transaction.TransactionThrowable;
import java.util.List;
import java.util.Map;
public interface ErrorService extends EventService {
List getAndClearTracedErrors();
void reportErrors(TracedError... tracedErrors);
void reportError(TracedError error);
void reportHTTPError(String message, int statusCode, String uri);
void reportException(Throwable throwable);
void reportException(Throwable throwable, Map params, boolean expected);
void reportError(String message, Map params, boolean expected);
void addHarvestableToService();
}