/**
 * THE TootBookException.java WRITEME...
 */
package com.tootsville.tootsbook.client.exception;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * WRITEME: Document this type. twheys@gmail.com Dec 31, 2009
 * 
 * @author <a href="mailto:twheys@gmail.com@resinteractive.com">Tim
 *         Heys</a>
 */
public class TootBookException extends Exception implements
		IsSerializable {

	/** WRITEME twheys@gmail.com */
	private static final long serialVersionUID = 2044773972046266116L;

	/** Error message associated with exception */
	private String complaint = "";

	/**
	 * <pre>
	 * twheys@gmail.com Feb 26, 2010
	 * </pre>
	 * 
	 * A TootBookException WRITEME...
	 */
	public TootBookException () {
		this ("Error!");
	}

	/**
	 * <pre>
	 * twheys@gmail.com Feb 26, 2010
	 * </pre>
	 * 
	 * A TootBookException WRITEME...
	 * 
	 * @param exceptComplaint WRITEME twheys@gmail.com
	 */
	public TootBookException (final String exceptComplaint) {
		complaint = exceptComplaint;
	}

	/**
	 * @return the message
	 */
	public String getComplaint () {
		return complaint;
	}

	/**
	 * @see java.lang.Throwable#getMessage()
	 */
	@Override
	public String getMessage () {
		return getComplaint ();
	}

	/**
	 * @param newComplaint the message to set
	 */
	public void setComplaint (final String newComplaint) {
		complaint = newComplaint;
	}
}
