question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment Exceptions

See original GitHub issue

Need to handle cases where the application code is in error - these should be documented in the spec and tested in the TCK. Here are a few of the exceptions we should cover (please add more as we think of them):

  • Multiple HTTP method annotations on the same interface method (i.e. @GET @PUT public Object someMethod()
  • Invalid URI templating (i.e. @GET @Path("/blah") public Object someMethod(@PathParam("{someParam}") - in this case there is no path parameter defined
  • No @Path annotation on the passed-in interface

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Emily-Jiangcommented, Dec 5, 2017

I suggest you create a separate exception such as RestClientDefinitionException. For CDI managed beans, this exception will be wrapped under DefinitionException. For builder pattern client, it will be bubbled up without being wrapped or wrapped by JAX-RS.

0reactions
andymc12commented, Dec 6, 2017

Another condition we might want to check is when a rest client interface declares a sub-resource locator method that returns a class instead of an interface.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception Site List
See Deployment Rule Set for information about deployment rules. Manage the Exception Site List. The exceptions granted by the Exception Site List feature...
Read more >
Correlating Exceptions with Deployments - Logz.io
Finding the Bug in the Haystack: You can now correlate Exceptions with your deployments on the Logz.io Observability Platform.
Read more >
Deployed Military Exemption - SRCPA
Active duty military members may be entitled to receive the deployed military exemption if they meet the following qualifications:.
Read more >
Exceptions & Deployment - Java SE 8 - Skillsoft
Explore the purpose of Java exceptions, try, throw, catch, multi-catch, and… ... Exceptions & Deployment. Java SE 8 | Intermediate.
Read more >
DeploymentException Class (System.Deployment.Application)
Remarks. DeploymentException is the base class of all deployment-related exceptions thrown by the ApplicationDeployment class. Constructors. DeploymentException ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found