Hi,

If I got a method like:

Customer getCustomer(@PathParam('cust') String custId) {
    Customer c = myCustomerDao.getCustomer(custId);
   
    if (c == null) {
        // do something
    }
    return c;
}

Now, in the do something clause, I might want to respond with a http
code and maybe an errormessage. How do I inject those instead of just
returning null ?

Kind regards,
Tarjei

Reply via email to