Skip to content

Commit

Permalink
Merge pull request #313 from newrelic/bellis/fix-error-reported-javadoc
Browse files Browse the repository at this point in the history
update all 1st error to last error reported
  • Loading branch information
tbradellis authored Jun 1, 2021
2 parents a15f1af + 46c248c commit 4d95465
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface PublicApi {
* Notice an exception and report it to New Relic. If this method is called within a transaction, the exception will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* @param throwable The throwable to notice and report.
* @param params Custom parameters to include in the traced error. May be null.
Expand All @@ -42,7 +42,7 @@ public interface PublicApi {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* @param message The error message to be reported.
* @param params Custom parameters to include in the traced error. May be null.
Expand All @@ -53,7 +53,7 @@ public interface PublicApi {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* @param message Message to report with a transaction when it finishes.
*/
Expand All @@ -63,7 +63,7 @@ public interface PublicApi {
* Notice an exception and report it to New Relic. If this method is called within a transaction, the exception will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand Down Expand Up @@ -94,7 +94,7 @@ public interface PublicApi {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand All @@ -114,7 +114,7 @@ public interface PublicApi {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand Down
12 changes: 6 additions & 6 deletions newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void incrementCounter(String name, int count) {
* Notice an exception and report it to New Relic. If this method is called within a transaction, the exception will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* <p>
* <b>Note:</b> The key and value pairs in custom parameters {@code params} will be dropped or modified in the
Expand Down Expand Up @@ -102,7 +102,7 @@ public static void noticeError(Throwable throwable) {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* <p>
* <b>Note:</b> The key and value pairs in custom parameters {@code params} will be dropped or modified in the
Expand All @@ -121,7 +121,7 @@ public static void noticeError(String message, Map<String, ?> params) {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* @param message Message to report with a transaction when it finishes.
* @since 2.21.0
Expand All @@ -133,7 +133,7 @@ public static void noticeError(String message) {
* Notice an exception and report it to New Relic. If this method is called within a transaction, the exception will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand Down Expand Up @@ -168,7 +168,7 @@ public static void noticeError(Throwable throwable, boolean expected) {
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand All @@ -190,7 +190,7 @@ public static void noticeError(String message, Map<String, ?> params, boolean ex
* Notice an error and report it to New Relic. If this method is called within a transaction, the error message will
* be reported with the transaction when it finishes. If it is invoked outside of a transaction, a traced error will
* be created and reported to New Relic. If noticeError is invoked multiple times while in a transaction, only the
* first error will be reported.
* last error will be reported.
*
* Expected errors do not increment an application's error count or contribute towards its Apdex score.
*
Expand Down

0 comments on commit 4d95465

Please sign in to comment.