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
Exception in thread "main" inet.ipaddr.AddressValueException: my string
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at issue127.Issue.throwAddressValueException(Issue.java:19)
at issue127.Issue.main(Issue.java:11)
I am subclassing
IPv4Address
andIPv6Address
, and I would like to be able to throw a subclass ofAddressValueException
with a custom error message.Can you please make
AddressValueException(String message)
so I can do this?The text was updated successfully, but these errors were encountered: