Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make it possible to configure exception to throw on null-check failure #60
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.