@@ -102,8 +102,6 @@ public TokenInfo getAccessToken(Authentication auth) throws VCertException{
102102 return connector .getAccessToken (auth );
103103 } catch (FeignException e ) {
104104 throw VCertException .fromFeignException (e );
105- } catch (Exception e ) {
106- throw new VCertException ("Unexpected exception" , e );
107105 }
108106 }
109107
@@ -113,13 +111,11 @@ public TokenInfo getAccessToken() throws VCertException{
113111 return connector .getAccessToken ();
114112 } catch (FeignException e ) {
115113 throw VCertException .fromFeignException (e );
116- } catch (Exception e ) {
117- throw new VCertException ("Unexpected exception" , e );
118114 }
119115 }
120116
121117 @ Override
122- public TokenInfo refreshAccessToken (String applicationId ) throws VCertException {
118+ public TokenInfo refreshAccessToken (String applicationId ) throws VCertException {
123119 return connector .refreshAccessToken (applicationId );
124120 }
125121
@@ -137,8 +133,6 @@ public void ping() throws VCertException {
137133 connector .ping ();
138134 } catch (FeignException e ) {
139135 throw VCertException .fromFeignException (e );
140- } catch (Exception e ) {
141- throw new VCertException ("Unexpected exception" , e );
142136 }
143137 }
144138
@@ -151,8 +145,6 @@ public ZoneConfiguration readZoneConfiguration(String zone) throws VCertExceptio
151145 return connector .readZoneConfiguration (zone );
152146 } catch (FeignException e ) {
153147 throw VCertException .fromFeignException (e );
154- } catch (Exception e ) {
155- throw new VCertException ("Unexpected exception" , e );
156148 }
157149 }
158150
@@ -166,8 +158,6 @@ public CertificateRequest generateRequest(ZoneConfiguration config, CertificateR
166158 return connector .generateRequest (config , request );
167159 } catch (FeignException e ) {
168160 throw VCertException .fromFeignException (e );
169- } catch (Exception e ) {
170- throw new VCertException ("Unexpected exception" , e );
171161 }
172162 }
173163
@@ -177,8 +167,6 @@ public String requestCertificate(CertificateRequest request, String zone) throws
177167 return connector .requestCertificate (request , zone );
178168 } catch (FeignException e ) {
179169 throw VCertException .fromFeignException (e );
180- } catch (Exception e ) {
181- throw new VCertException ("Unexpected exception" , e );
182170 }
183171 }
184172
@@ -192,8 +180,6 @@ public String requestCertificate(CertificateRequest request, ZoneConfiguration z
192180 return connector .requestCertificate (request , zoneConfiguration );
193181 } catch (FeignException e ) {
194182 throw VCertException .fromFeignException (e );
195- } catch (Exception e ) {
196- throw new VCertException ("Unexpected exception" , e );
197183 }
198184 }
199185
@@ -206,8 +192,6 @@ public PEMCollection retrieveCertificate(CertificateRequest request) throws VCer
206192 return connector .retrieveCertificate (request );
207193 } catch (FeignException e ) {
208194 throw VCertException .fromFeignException (e );
209- } catch (Exception e ) {
210- throw new VCertException ("Unexpected exception" , e );
211195 }
212196 }
213197
@@ -220,8 +204,6 @@ public void revokeCertificate(RevocationRequest request) throws VCertException {
220204 connector .revokeCertificate (request );
221205 } catch (FeignException e ) {
222206 throw VCertException .fromFeignException (e );
223- } catch (Exception e ) {
224- throw new VCertException ("Unexpected exception" , e );
225207 }
226208 }
227209
@@ -234,8 +216,6 @@ public String renewCertificate(RenewalRequest request) throws VCertException {
234216 return connector .renewCertificate (request );
235217 } catch (FeignException e ) {
236218 throw VCertException .fromFeignException (e );
237- } catch (Exception e ) {
238- throw new VCertException ("Unexpected exception" , e );
239219 }
240220 }
241221
@@ -248,8 +228,6 @@ public ImportResponse importCertificate(ImportRequest request) throws VCertExcep
248228 return connector .importCertificate (request );
249229 } catch (FeignException e ) {
250230 throw VCertException .fromFeignException (e );
251- } catch (Exception e ) {
252- throw new VCertException ("Unexpected exception" , e );
253231 }
254232 }
255233
@@ -262,8 +240,6 @@ public Policy readPolicyConfiguration(String zone) throws VCertException {
262240 return connector .readPolicyConfiguration (zone );
263241 } catch (FeignException e ) {
264242 throw VCertException .fromFeignException (e );
265- } catch (Exception e ) {
266- throw new VCertException ("Unexpected exception" , e );
267243 }
268244 }
269245}
0 commit comments