You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we throw NullPointerException when a null-check fails.
However, other popular frameworks (e.g. Spring Boot) throw IllegalArgumentException.
The task is to allow to configure exceptions to throw.
Note: it should be done on a per-instrumentation type basis because it doesn't look like a good idea to throw IllegalArgumentException when a method marked by @NotNull returns null. IllegalStateException looks more suitable here.
The text was updated successfully, but these errors were encountered:
Right now we throw NullPointerException when a null-check fails.
However, other popular frameworks (e.g. Spring Boot) throw IllegalArgumentException.
The task is to allow to configure exceptions to throw.
Note: it should be done on a per-instrumentation type basis because it doesn't look like a good idea to throw IllegalArgumentException when a method marked by @NotNull returns null. IllegalStateException looks more suitable here.
The text was updated successfully, but these errors were encountered: