Skip to content

Listener name in error context is vague for nested classes #292

@haykam821

Description

@haykam821

For example, the GameActivityEvents.Tick method would be reported as Tick. Note that Plasmid itself doesn't contain any conflicting names when lacking the context of the outer class, but custom events could pose a risk.

var listenerName = event.getListenerType().getSimpleName();
Plasmid.LOGGER.warn("An unexpected exception occurred while invoking {}", listenerName, throwable);
space.getLifecycle().onError(space, throwable, "Invoking " + listenerName);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions