From e755c1b948a882d697e1de8c8588da3fa561172f Mon Sep 17 00:00:00 2001 From: ddp Date: Wed, 8 May 2002 18:07:41 +0000 Subject: [PATCH] Missed adding exceptions. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/graph2/trunk@144614 13f79535-47bb-0310-9956-ffa450edef68 --- .../CircularDependencyException.java | 38 +++++++++++++++++++ .../exception/StateMachineException.java | 38 +++++++++++++++++++ .../uml/exception/ModelNotFoundException.java | 38 +++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 src/java/org/apache/commons/graph/domain/dependency/exception/CircularDependencyException.java create mode 100644 src/java/org/apache/commons/graph/domain/statemachine/exception/StateMachineException.java create mode 100644 src/java/org/apache/commons/graph/domain/uml/exception/ModelNotFoundException.java diff --git a/src/java/org/apache/commons/graph/domain/dependency/exception/CircularDependencyException.java b/src/java/org/apache/commons/graph/domain/dependency/exception/CircularDependencyException.java new file mode 100644 index 0000000..dc7e077 --- /dev/null +++ b/src/java/org/apache/commons/graph/domain/dependency/exception/CircularDependencyException.java @@ -0,0 +1,38 @@ +package org.apache.commons.graph.dependency.exception; + +import org.apache.commons.graph.exception.*; + +/** + * Description of the Class + */ +public class CircularDependencyException + extends CycleException +{ + /** + * Constructor for the CircularDependencyException object + */ + public CircularDependencyException() + { + super(); + } + + /** + * Constructor for the CircularDependencyException object + * + * @param msg + */ + public CircularDependencyException(String msg) + { + super(msg); + } + + /** + * Constructor for the CircularDependencyException object + * + * @param cause + */ + public CircularDependencyException(Throwable cause) + { + super(cause); + } +} diff --git a/src/java/org/apache/commons/graph/domain/statemachine/exception/StateMachineException.java b/src/java/org/apache/commons/graph/domain/statemachine/exception/StateMachineException.java new file mode 100644 index 0000000..83a3263 --- /dev/null +++ b/src/java/org/apache/commons/graph/domain/statemachine/exception/StateMachineException.java @@ -0,0 +1,38 @@ +package org.apache.commons.graph.statemachine.exception; + +import org.apache.commons.graph.exception.*; + +/** + * Description of the Class + */ +public class StateMachineException + extends GraphException +{ + /** + * Constructor for the StateMachineException object + */ + public StateMachineException() + { + super(); + } + + /** + * Constructor for the StateMachineException object + * + * @param msg + */ + public StateMachineException(String msg) + { + super(msg); + } + + /** + * Constructor for the StateMachineException object + * + * @param t + */ + public StateMachineException(Throwable t) + { + super(t); + } +} diff --git a/src/java/org/apache/commons/graph/domain/uml/exception/ModelNotFoundException.java b/src/java/org/apache/commons/graph/domain/uml/exception/ModelNotFoundException.java new file mode 100644 index 0000000..49bf581 --- /dev/null +++ b/src/java/org/apache/commons/graph/domain/uml/exception/ModelNotFoundException.java @@ -0,0 +1,38 @@ +package org.apache.commons.graph.domain.uml.exception; + +/** + * Description of the Class + */ +public class ModelNotFoundException extends Exception +{ + private Throwable cause = null; + + /** + * Constructor for the ModelNotFoundException object + */ + public ModelNotFoundException() + { + super(); + } + + /** + * Constructor for the ModelNotFoundException object + * + * @param msg + */ + public ModelNotFoundException(String msg) + { + super(msg); + } + + /** + * Constructor for the ModelNotFoundException object + * + * @param cause + */ + public ModelNotFoundException(Throwable cause) + { + super(cause.getMessage()); + this.cause = cause; + } +}