Join Slack
Powered by
I need to throw an exception using reflection, any...
# announcements
r
Rak
05/23/2019, 4:03 PM
I need to throw an exception using reflection, any examples? The exception type is a string
d
dalexander
05/23/2019, 4:07 PM
Maybe use
Class.forName
to get the class then get a constructor off of it and use that to create the instance? After that you should just be able to handle it normally.
Open in Slack
Previous
Next