Title / Description
Code // smoopeClient initialized somewhere try { Business business == smoopeClient.getBusiness(); } catch (ResponseException e) { // Handle error } catch (BadRequestException e) { // Handle error } catch (UnauthorizedException e) { // Handle error } catch (ForbiddenException e) { // Handle error } catch (NotFoundException e) { // Handle error } catch (InternalServerErrorException e) { // Handle error } catch (ServiceUnavailableException e) { // Handle error } catch (HttpException e) { System.out.println(e.getMessage()); System.out.println(e.getCode()); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code