freme-project / e-Link

Apache License 2.0
0 stars 0 forks source link

Error message when template does not exist #38

Closed jnehring closed 9 years ago

jnehring commented 9 years ago

When you try to use e-link with a non existing template then the error message is

{
  "timestamp": 1441892250899,
  "message": "It seems your SPARQL template is not correctly defined.",
  "error": "Bad Request",
  "status": 400,
  "exception": "eu.freme.eservices.elink.exceptions.BadRequestException",
  "path": "/e-link/documents/"
}

It should be A template with ID xy does not exist. where xy is the id of the non-existing template.

m1ci commented 9 years ago

difficult to check this when you perform changes on e-Link and storing the templates in MySQL.

jnehring commented 9 years ago

We work on this when #42 is done, I think @ArneBinder can implement this.

m1ci commented 9 years ago

great, thanks!