From 4c36f7cb5aca402d90ea046454939860ba5457e8 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sat, 22 Dec 2001 23:54:18 +0000 Subject: [PATCH] Add an exception that indicates an error running a native process. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270334 13f79535-47bb-0310-9956-ffa450edef68 --- .../framework/exec/ExecException.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/ExecException.java diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/ExecException.java b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/ExecException.java new file mode 100644 index 000000000..f722c4b4f --- /dev/null +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/ExecException.java @@ -0,0 +1,49 @@ +/* + * 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 file. + */ +package org.apache.myrmidon.framework.exec; + +import org.apache.avalon.framework.CascadingException; + +/** + * ExecException indicates there was an error executing native process. + * + * @author Peter Donald + */ +public class ExecException + extends CascadingException +{ + /** + * Basic constructor for exception that does not specify a message + */ + public ExecException() + { + this( "", null ); + } + + /** + * Basic constructor with a message + * + * @param message the message + */ + public ExecException( final String message ) + { + this( message, null ); + } + + /** + * Constructor that builds cascade so that other exception information can be retained. + * + * @param message the message + * @param throwable the throwable + */ + public ExecException( final String message, final Throwable throwable ) + { + super( message, throwable ); + } +} +