From c2b7a9dd69107b5bf90e08d05e296b17888b052d Mon Sep 17 00:00:00 2001 From: Joshua Matsuoka Date: Fri, 19 Apr 2024 16:50:53 -0400 Subject: [PATCH] fix(jmcagent): widen exception subclass visiblity (#374) --- src/main/java/io/cryostat/core/agent/AgentJMXHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/cryostat/core/agent/AgentJMXHelper.java b/src/main/java/io/cryostat/core/agent/AgentJMXHelper.java index 1f57857c..6515485a 100644 --- a/src/main/java/io/cryostat/core/agent/AgentJMXHelper.java +++ b/src/main/java/io/cryostat/core/agent/AgentJMXHelper.java @@ -110,13 +110,13 @@ public void defineEventProbes(String xmlDescription) throws ProbeDefinitionExcep @Override protected final void finalize() {} - static class ProbeDefinitionException extends Exception { + public static class ProbeDefinitionException extends Exception { ProbeDefinitionException(String message, Throwable e) { super(message, e); } } - static class MBeanRetrieveException extends Exception { + public static class MBeanRetrieveException extends Exception { MBeanRetrieveException(Throwable e) { super(e); }