googleapis / googleapis/google-cloud-java
Exceptions created by FlowController don't provide getMessage method implementations
- Vorherrschende Sprache
- Java
- Sterne
- 2.1k
- Forks
- 1.2k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 154
Beschreibung
Standard Java convention for exception messages is:
- getMessage() → returns the raw detail message
- toString() → returns ClassName: getMessage()
FlowController creates exceptions without implementing getMessage() or calling super(msg) in its constructors. Consequently, getMessage() returns null.
When logging framework uses getMessage() to render the output you will get very limited text representation.
For example:
```
com.google.api.gax.batching.FlowController$MaxOutstandingRequestBytesReachedException: null
at com.google.cloud.pubsub.v1.Publisher$MessageFlowController.acquire(Publisher.java:1019)
at com.google.cloud.pubsub.v1.Publisher.publish(Publisher.java:297)
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.