- return 0;
- } catch (IOException | UnauthenticatedResponseException e) {
- System.err.println("Set pin error: " + e.getMessage());
- return 3;
+ } catch (UnauthenticatedResponseException e) {
+ throw new UnexpectedErrorException("Set pin error failed with unauthenticated response: " + e.getMessage());
+ } catch (IOException e) {
+ throw new IOErrorException("Set pin error: " + e.getMessage());