code: private static String makeMessage(Throwable throwable) {
          if(throwable instanceof AlgorithmException) {
              return throwable.getMessage();
          } else {
              final String className = throwable.getClass().getName();
              final String message = throwable.getMessage();
              return className + ": " + message;
          }
      }
docs: Helper method to construct "Exception: Message"