Update of /cvsroot/woc/woc/source/wocjava/source/com/egonw/woc/exception
In directory usw-pr-cvs1:/tmp/cvs-serv19480/exception
Added Files:
BadCommentNotification.java BadItemNotification.java
DuplicateItemNotification.java EmptyItemNotification.java
IncompleteItemNotification.java UnknownFieldNotification.java
WocException.java WocFatalError.java WocNotification.java
Log Message:
Added java source files.
--- NEW FILE: BadCommentNotification.java ---
package com.egonw.woc.exception;
import com.egonw.woc.*;
/**
* Signals that an error occured during the reading of a Woc-format file.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class BadCommentNotification extends BadItemNotification {
public BadCommentNotification(Item i) {
super(i);
}
}
--- NEW FILE: BadItemNotification.java ---
package com.egonw.woc.exception;
import com.egonw.woc.*;
/**
* Signals that an error occured during the reading of a Woc-format file.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class BadItemNotification extends WocNotification {
public BadItemNotification(Item i) {
super(i);
}
}
--- NEW FILE: DuplicateItemNotification.java ---
package com.egonw.woc.exception;
import com.egonw.util.*;
import com.egonw.woc.*;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class DuplicateItemNotification extends WocNotification {
/**
* Constructs a <code>DuplicateItemException</code>.
*/
public DuplicateItemNotification(Item i) {
super(i);
}
}
--- NEW FILE: EmptyItemNotification.java ---
package com.egonw.woc.exception;
import com.egonw.woc.*;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class EmptyItemNotification extends WocNotification {
/**
* Constructs a <code>EmptyItemException</code>.
*/
public EmptyItemNotification(Item i) {
super(i);
}
}
--- NEW FILE: IncompleteItemNotification.java ---
package com.egonw.woc.exception;
import com.egonw.util.*;
import com.egonw.woc.*;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class IncompleteItemNotification extends WocNotification {
/**
* Constructs a <code>IncompleteItemException</code>.
*/
public IncompleteItemNotification(Item i) {
super(i);
}
}
--- NEW FILE: UnknownFieldNotification.java ---
package com.egonw.woc.exception;
import com.egonw.woc.*;
/**
* Signals that an error occured during the reading of a Woc-format file.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class UnknownFieldNotification extends BadItemNotification {
public UnknownFieldNotification(Item i) {
super(i);
}
}
--- NEW FILE: WocException.java ---
package com.egonw.woc.exception;
import java.lang.Exception;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class WocException extends Exception {
/**
* Constructs a <code>WocException</code> with no detail message.
*/
public WocException() {
super();
}
/**
* Constructs a <code>WocException</code> with a detail message.
*/
public WocException(String s) {
super(s);
}
}
--- NEW FILE: WocFatalError.java ---
package com.egonw.woc.exception;
import com.egonw.util.*;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class WocFatalError extends WocException {
/**
* Constructs a <code>WocFatalError</code> with no detail message.
*/
public WocFatalError() {
super();
}
/**
* Constructs a <code>WocFatalError</code> with a detail message.
*/
public WocFatalError(String s) {
super();
}
}
--- NEW FILE: WocNotification.java ---
package com.egonw.woc.exception;
import com.egonw.util.*;
import com.egonw.woc.*;
/**
* Signals an non-terminal error.
*
* @author Egon Willighagen
* @version 1.0, 1/7/98
*/
public class WocNotification extends WocException {
private Item i;
/**
* Constructs a <code>WocException</code> with no detail message.
*/
public WocNotification(Item i) {
super();
this.i = i;
}
/**
* Returns the item.
*/
public String toString() {
return (String)i.get(Item.NAME);
}
}
|