com.ibm.ram.common.data.exception
Class InvalidRatingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.ram.common.data.exception.InvalidRatingException
All Implemented Interfaces:
java.io.Serializable

public class InvalidRatingException
extends java.lang.Exception

Thrown when a rating value is invalid

Since:
7.1
See Also:
Serialized Form

Constructor Summary
InvalidRatingException()
           
InvalidRatingException(int rating, java.lang.String message)
           
 
Method Summary
 java.lang.String getMessage()
           
 int getRating()
           
 void setMessage(java.lang.String message)
           
 void setRating(int rating)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidRatingException

public InvalidRatingException(int rating,
                              java.lang.String message)
Since:
7.1

InvalidRatingException

public InvalidRatingException()
Method Detail

getRating

public int getRating()
Returns:
Returns the rating.
Since:
7.1

setRating

public void setRating(int rating)
Parameters:
rating - The rating to set.
Since:
7.1

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
Returns:
Returns the message.
Since:
7.1

setMessage

public void setMessage(java.lang.String message)
Parameters:
message - The message to set.
Since:
7.1