Skip to content

ReflectionHelper#getClass util methods#112

Merged
mcmonkey4eva merged 1 commit intoDenizenScript:masterfrom
tal5:Get_Class_Reflection_Util
May 22, 2025
Merged

ReflectionHelper#getClass util methods#112
mcmonkey4eva merged 1 commit intoDenizenScript:masterfrom
tal5:Get_Class_Reflection_Util

Conversation

@tal5
Copy link
Copy Markdown
Member

@tal5 tal5 commented May 22, 2025

Additions

  • ReflectionHelper#getClass - Class#forName with exception handling and a clean error.
  • ReflectionHelper#getClassOrThrow - Class#forName with a clean error and an unchecked exception (for when you still want everything to stop on fail).

Also some error message cleanups.

@mcmonkey4eva mcmonkey4eva merged commit 3428dd0 into DenizenScript:master May 22, 2025
1 check passed
@tal5 tal5 deleted the Get_Class_Reflection_Util branch May 22, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants