3536373839404142
throws NotFoundException { Pet pet = petData.getPetbyId(ru.getLong(0, 100000, 0, petId)); if (null != pet) { return Response.ok().entity(pet).build(); } else { throw new NotFoundException(404, "Pet not found"); } }
4445464748495051
4344454647484950
105106107108109110111112
throws ApiException { User user = userData.findUserByName(username); if (null != user) { return Response.ok().entity(user).build(); } else { throw new NotFoundException(404, "User not found"); } }
throws NotFoundException { Order order = storeData.findOrderById(ru.getLong(0, 10000, 0, orderId)); if (null != order) { return Response.ok().entity(order).build(); } else { throw new NotFoundException(404, "Order not found"); } }
throws NotFoundException { Pet pet = petData.getPetbyId(ru.getLong(0, 100000, 0, petId)); if (null != pet) { return pet; } else { throw new NotFoundException(404, "Pet not found"); } }