Module jdk.attach

Class AgentInitializationException

    • Constructor Detail

      • AgentInitializationException

        public AgentInitializationException​()
        Constructs an AgentInitializationException with no detail message.
      • AgentInitializationException

        public AgentInitializationException​(String s)
        Constructs an AgentInitializationException with the specified detail message.
        Parameters:
        s - the detail message.
      • AgentInitializationException

        public AgentInitializationException​(String s,
                                            int returnValue)
        Constructs an AgentInitializationException with the specified detail message and the return value from the execution of the agent's Agent_OnAttach function.
        Parameters:
        s - the detail message.
        returnValue - the return value
    • Method Detail

      • returnValue

        public int returnValue​()
        If the exception was created with the return value from the agent Agent_OnAttach function then this returns that value, otherwise returns 0.
        Returns:
        the return value