public static ServerException embedUnexpectedReplyCodeException ( UnexpectedReplyCodeException urce , String message ) { ServerException se = new ServerException ( SERVER_REFUSED , message ) ; se . setRootCause ( urce ) ; return se ; }
Constructs server exception with UnexpectedReplyCodeException nested in it .