Syntax
NewRelic.crashNow()NewRelic.crashNow(string $message)
Throws a demo run-time exception named java.lang.RuntimeException to test New Relic crash reporting.
Requirements
Agent version 4.87.0 or higher.
Description
With this method, you can throw a demo run-time exception named java.lang.RuntimeException
with a message. This crash will appear in the Crash Analysis page.
Parameters
Parameter | Description |
---|---|
String | Optional. A message attached to the exception. |
Examples
Example:
NewRelic.crashNow();
Example with message:
NewRelic.crashNow("This is my test message");
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。