Skip to Content.
Sympa Menu

notify-dpml - r1871 - trunk/main/metro/part/src/main/net/dpml/runtime

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1871 - trunk/main/metro/part/src/main/net/dpml/runtime
  • Date: Sun, 11 Feb 2007 03:48:55 +0100

Author: mcconnell
Date: 2007-02-11 03:48:55 +0100 (Sun, 11 Feb 2007)
New Revision: 1871

Added:

trunk/main/metro/part/src/main/net/dpml/runtime/MissingContextEntryException.java
Log:
add explicit exception dealing with a missing context entry solution

Added:
trunk/main/metro/part/src/main/net/dpml/runtime/MissingContextEntryException.java
===================================================================
---
trunk/main/metro/part/src/main/net/dpml/runtime/MissingContextEntryException.java
2007-02-11 02:47:05 UTC (rev 1870)
+++
trunk/main/metro/part/src/main/net/dpml/runtime/MissingContextEntryException.java
2007-02-11 02:48:55 UTC (rev 1871)
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2006 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.runtime;
+
+import net.dpml.lang.DecodingException;
+
+import dpml.util.ElementHelper;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+
+/**
+ * Exception thrown if a solution for a required context entry is not found.
+ */
+public class MissingContextEntryException extends ComponentException
+{
+ /**
+ * Create a new missing context entry exception.
+ * @param message the exception message
+ */
+ public MissingContextEntryException( String message )
+ {
+ this( message, null );
+ }
+
+ /**
+ * Create a new missing context entry exception.
+ * @param message the exception message
+ * @param cause the causal exception
+ */
+ public MissingContextEntryException( String message, Throwable cause )
+ {
+ this( message, cause, null );
+ }
+
+ /**
+ * Create a new missing context entry exception.
+ * @param message the exception message
+ * @param cause the causal exception
+ * @param element the element representing the source definition
+ */
+ public MissingContextEntryException( String message, Throwable cause,
Element element )
+ {
+ super( message, cause, element );
+ }
+}




  • r1871 - trunk/main/metro/part/src/main/net/dpml/runtime, mcconnell at BerliOS, 02/10/2007

Archive powered by MHonArc 2.6.24.

Top of Page