Back to project page watchme.
The source code is released under:
Copyright (c) 2012 Johan Brook, Robin Andersson, Lisa Stenberg, Mattias Henriksson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
If you think the Android project watchme listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * MovieAlreadyExistsException.java/* w ww .j a v a2 s. c om*/ * * Exception to throw when a movie already exist in the database * (in reference to a movie's title). * * @author Johan Brook * @copyright (c) 2012 Johan Brook, Robin Andersson, Lisa Stenberg, Mattias Henriksson * @license MIT */ package se.chalmers.watchme.database; import se.chalmers.watchme.model.Movie; public class MovieAlreadyExistsException extends Exception { private Movie movie; /** * Create a new movie exception. * * @param detailMessage The message string * @param movie The incorrect movie */ public MovieAlreadyExistsException(String detailMessage, Movie movie) { super(detailMessage); this.movie = movie; } /** * Get the incorrect movie object. * * @return The duplicated movie */ public Movie getMovie() { return this.movie; } }