Skip to content

Instantly share code, notes, and snippets.

@egealpay
Created February 26, 2019 06:32
Show Gist options
  • Select an option

  • Save egealpay/a9f3e1768e18e4a7bb1abec96d87f460 to your computer and use it in GitHub Desktop.

Select an option

Save egealpay/a9f3e1768e18e4a7bb1abec96d87f460 to your computer and use it in GitHub Desktop.
public class LocalPort {
private ACMEPort innerPort;
public LocalPort(int portNumber) {
innerPort = new ACMEPort(portNumber);
}
public void open() {
try {
innerPort.open();
} catch (DeviceResponseException e) {
throw new PortDeviceFailure(e);
} catch (ATM1212UnlockedException e) {
throw new PortDeviceFailure(e);
} catch (GMXError e) {
throw new PortDeviceFailure(e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment