Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserNotFoundException code does not contain imports #33

Closed
mdbudnick opened this issue Jun 20, 2017 · 1 comment
Closed

UserNotFoundException code does not contain imports #33

mdbudnick opened this issue Jun 20, 2017 · 1 comment

Comments

@mdbudnick
Copy link

The code should be:

package bookmarks;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.NOT_FOUND)
class UserNotFoundException extends RuntimeException {

public UserNotFoundException(String userId) {
	super("could not find user '" + userId + "'.");
}

}

@gregturn
Copy link
Contributor

This tutorial was completely rewritten as of 63d3937.

I suggest you read it from the top and be sure to let us know if you spot any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants