@Test public void throwAsAdapterException_rethrows_adapter_exception_when_exception_is_adapter_exception() throws Exception { AdapterException cause = new AdapterException(new AdapterLogId("y",null),"originMessage"); expected.expect(AdapterException.class); expected.expectMessage("y:originMessage"); throwAsAdapterException(new AdapterLogId("z",null),"otherMessage", cause); }
public static void throwAsAdapterException(AdapterLogId id, String message, Throwable t) throws AdapterException { throw asAdapterException(id, message, t); }
AdapterException extends Exception { public static void throwAsAdapterException(AdapterLogId id, String message, Throwable t) throws AdapterException { throw asAdapterException(id, message, t); } }
AdapterException extends Exception { public static void throwAsAdapterException(AdapterLogId id, String message, Throwable t) throws AdapterException { throw asAdapterException(id, message, t); } AdapterException(AdapterLogId id, String message, Throwable cause);  AdapterException(AdapterLogId id, String message);  AdapterException(AdapterLogId id, Throwable cause); }
AdapterException extends Exception { public static void throwAsAdapterException(AdapterLogId id, String message, Throwable t) throws AdapterException { throw asAdapterException(id, message, t); } AdapterException(AdapterLogId id, String message, Throwable cause);  AdapterException(AdapterLogId id, String message);  AdapterException(AdapterLogId id, Throwable cause); static void throwAsAdapterException(AdapterLogId id, String message, Throwable t); static AdapterException asAdapterException(AdapterLogId id, String message, Throwable t); }
AdapterException extends Exception { public static void throwAsAdapterException(AdapterLogId id, String message, Throwable t) throws AdapterException { throw asAdapterException(id, message, t); } AdapterException(AdapterLogId id, String message, Throwable cause);  AdapterException(AdapterLogId id, String message);  AdapterException(AdapterLogId id, Throwable cause); static void throwAsAdapterException(AdapterLogId id, String message, Throwable t); static AdapterException asAdapterException(AdapterLogId id, String message, Throwable t);  }