cziegeler 02/05/10 00:54:09
Modified: sourceresolve/src/java/org/apache/excalibur/source
SourceResolver.java
sourceresolve/src/java/org/apache/excalibur/source/impl
SourceResolverImpl.java
Added: sourceresolve/src/java/org/apache/excalibur/source
SourceNotFoundException.java
Log:
Adding SourceNotFoundException
Revision Changes Path
1.3 +3 -1
jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/SourceResolver.java
Index: SourceResolver.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/SourceResolver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SourceResolver.java 24 Apr 2002 12:35:37 -0000 1.2
+++ SourceResolver.java 10 May 2002 07:54:09 -0000 1.3
@@ -29,7 +29,7 @@
* like Composable, Initializable, Disposable etc.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.2 $ $Date: 2002/04/24 12:35:37 $
+ * @version CVS $Revision: 1.3 $ $Date: 2002/05/10 07:54:09 $
*/
public interface SourceResolver
@@ -40,6 +40,7 @@
/**
* Get a <code>Source</code> object.
* This is a shortcut for <code>resolve(location, null, null)</code>
+ * @throws SourceNotFoundException if the source cannot be found
*/
Source resolveURI( String location )
throws MalformedURLException, IOException, SourceException;
@@ -54,6 +55,7 @@
* is optional and can be <code>null</code>.
* @param parameters - Additional parameters for the URI. The parameters
* are specific to the used protocol.
+ * @throws SourceNotFoundException if the source cannot be found
*/
Source resolveURI( String location,
String base,
1.1
jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/SourceNotFoundException.java
Index: SourceNotFoundException.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.source;
/**
* This Exception should be thrown if the source could not be found.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
* @version CVS $Revision: 1.1 $ $Date: 2002/05/10 07:54:09 $
*/
public class SourceNotFoundException
extends SourceException {
/**
* Construct a new <code>SourceNotFoundException</code> instance.
*
* @param message The detail message for this exception.
*/
public SourceNotFoundException( final String message )
{
super( message, null );
}
/**
* Construct a new <code>SourceNotFoundException</code> instance.
*
* @param message The detail message for this exception.
* @param throwable the root cause of the exception
*/
public SourceNotFoundException( final String message, final Throwable
throwable )
{
super( message, throwable );
}
}
1.6 +3 -1
jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/SourceResolverImpl.java
Index: SourceResolverImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/SourceResolverImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SourceResolverImpl.java 2 May 2002 06:46:49 -0000 1.5
+++ SourceResolverImpl.java 10 May 2002 07:54:09 -0000 1.6
@@ -51,7 +51,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
- * @version $Id: SourceResolverImpl.java,v 1.5 2002/05/02 06:46:49 cziegeler
Exp $
+ * @version $Id: SourceResolverImpl.java,v 1.6 2002/05/10 07:54:09 cziegeler
Exp $
*/
public class SourceResolverImpl
extends AbstractLogEnabled
@@ -165,6 +165,7 @@
/**
* Get a <code>Source</code> object.
+ * @throws SourceNotFoundException if the source cannot be found
*/
public Source resolveURI( String location )
throws MalformedURLException, IOException, SourceException
@@ -174,6 +175,7 @@
/**
* Get a <code>Source</code> object.
+ * @throws SourceNotFoundException if the source cannot be found
*/
public Source resolveURI( String location,
String baseURI,
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>