2006/unicorn/src/org/w3c/unicorn/exceptions NoDocumentException.java,NONE,1.1.2.1 ParameterException.java,NONE,1.1.2.1 NoTaskException.java,NONE,1.1.2.1 EmptyDocumentException.java,NONE,1.1.2.1 NoMimeTypeException.java,NONE,1.1.2.1 UnsupportedMimeTypeException.java,NONE,1.1.2.1

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/exceptions
In directory hutz:/tmp/cvs-serv2609/src/org/w3c/unicorn/exceptions

Added Files:
      Tag: dev2
	NoDocumentException.java ParameterException.java 
	NoTaskException.java EmptyDocumentException.java 
	NoMimeTypeException.java UnsupportedMimeTypeException.java 
Log Message:
all initialization actions in Init.java
+ compatibility windows/linux

--- NEW FILE: NoDocumentException.java ---
// $Id: NoDocumentException.java,v 1.1.2.1 2009/08/11 16:05:36 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * NoDocumentException<br />
 * Created: Jul 7, 2006 5:26:38 PM<br />
 * Exception used when there is no document to analyze
 * 
 * @author Jean-Guilhem Rouel
 * 
 */
public class NoDocumentException extends Exception {

	private static final long serialVersionUID = -4395530018963595605L;

	public NoDocumentException() {
		super();
	}

	public NoDocumentException(String message) {
		super(message);
	}
}

--- NEW FILE: NoTaskException.java ---
// $Id: NoTaskException.java,v 1.1.2.1 2009/08/11 16:05:36 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * NoTaskException<br />
 * Created: Jul 7, 2006 5:43:15 PM<br />
 * Exception used when the user didn't specify the task to perform
 * 
 * @author Jean-Guilhem Rouel
 * 
 */
public class NoTaskException extends Exception {

	private static final long serialVersionUID = -7057542417180953708L;

	public NoTaskException() {
		this("No task chosen");
	}

	public NoTaskException(String message) {
		super(message);
	}
}

--- NEW FILE: UnsupportedMimeTypeException.java ---
// $Id: UnsupportedMimeTypeException.java,v 1.1.2.1 2009/08/11 16:05:37 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * UnsupportedMimeTypeException<br />
 * Created: May 30, 2006 10:21:13 AM<br />
 * Exception used to report errors when an observer does not support a mime type
 * 
 * @author Jean-Guilhem ROUEL
 */
public class UnsupportedMimeTypeException extends Exception {

	private static final long serialVersionUID = -6581746591098195257L;

	public UnsupportedMimeTypeException(String message) {
		super("Unsupported Content-Type: " + message);
	}
}

--- NEW FILE: ParameterException.java ---
// $Id: ParameterException.java,v 1.1.2.1 2009/08/11 16:05:36 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * ParameterException<br />
 * Created: Jun 9, 2006 5:35:55 PM<br />
 * Exception used when the parameters aren't well formed
 */
public class ParameterException extends Exception {

	private static final long serialVersionUID = 6882194955581911106L;

	public ParameterException(String string) {
		super(string);
	}

}

--- NEW FILE: NoMimeTypeException.java ---
// $Id: NoMimeTypeException.java,v 1.1.2.1 2009/08/11 16:05:37 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * NoMimeTypeException<br />
 * Created: Jul 7, 2006 5:30:51 PM<br />
 * Exception that occurs when mime-type isn't specified
 * 
 * @author Jean-Guilhem Rouel
 * 
 */
public class NoMimeTypeException extends Exception {

	private static final long serialVersionUID = -1030043318614100474L;

	public NoMimeTypeException() {
		super();
	}

	public NoMimeTypeException(String message) {
		super(message);
	}
}

--- NEW FILE: EmptyDocumentException.java ---
// $Id: EmptyDocumentException.java,v 1.1.2.1 2009/08/11 16:05:37 tgambet Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2006.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.unicorn.exceptions;

/**
 * EmptyDocumentException<br />
 * Created: Jul 7, 2006 5:26:56 PM<br />
 * Exception used when the document is empty
 * 
 * @author Jean-Guilhem Rouel
 * 
 */
public class EmptyDocumentException extends Exception {

	private static final long serialVersionUID = 1785553648502514203L;

	public EmptyDocumentException() {
		super();
	}

	public EmptyDocumentException(final String message) {
		super(message);
	}
}

Received on Tuesday, 11 August 2009 16:08:42 UTC