Skip to content

REFLECTION_FAILED incorrect on BaseAI.doOrder #3

Description

@JacobFischer

Have an AI do an order and throw an exception.

it will be caught by :

catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | SecurityException e) {
            Client.getInstance().handleError(e, ErrorCode.REFLECTION_FAILED, "Could not find method '" + order + "' in AI to do order.");
}

Which is not true if the exception was thrown by AI code, which we should handle.

So basically we need another try catch around method.invoke if the competitors code broke, not our reflection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions