|
|
@@ -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 <a href="mailto:peter@apache.org">Peter Donald</a> |
|
|
|
*/ |
|
|
|
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 ); |
|
|
|
} |
|
|
|
} |
|
|
|
|