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
Currently, when we annotate a function with sneaky throws it will only throw whatever exception is present or what class we defined to throw. Adding additional functionality to have a custom message along with the stack trace would be nice.
The following feature I'm proposing:
@SneakyThrows({message="some custom error message"})
public void someFunction() {
throw new Throwable();
}
The text was updated successfully, but these errors were encountered:
andrewpolemeni
changed the title
[FEATURE] Sneaky Throws (Add Custom Message to Exception)
[FEATURE] @SneakyThrows (Add Custom Message to Exception)
Dec 22, 2022
Currently, when we annotate a function with sneaky throws it will only throw whatever exception is present or what class we defined to throw. Adding additional functionality to have a custom message along with the stack trace would be nice.
The following feature I'm proposing:
The text was updated successfully, but these errors were encountered: