ExecutionException.java revision 3
2ronwalf/*
2ronwalf * Created on Dec 12, 2004
2ronwalf */
2ronwalfpackage org.mindswap.exceptions;
2ronwalf
3daenzeroramaimport org.mindswap.owls.process.AtomicProcess;
3daenzeroramaimport org.mindswap.owls.process.Process;
3daenzerorama
2ronwalf/**
2ronwalf * @author Evren Sirin
2ronwalf */
2ronwalfpublic class ExecutionException extends RuntimeException {
3daenzerorama private AtomicProcess atomicProcess;
3daenzerorama private Process process;
3daenzerorama
2ronwalf public ExecutionException() {
2ronwalf super();
2ronwalf }
2ronwalf
2ronwalf public ExecutionException(String message) {
2ronwalf super(message);
2ronwalf }
2ronwalf
3daenzerorama public ExecutionException(String message, Process process) {
3daenzerorama super(message);
3daenzerorama setProcess(process);
3daenzerorama }
3daenzerorama
2ronwalf public ExecutionException(Exception e) {
2ronwalf super(e);
3daenzerorama }
3daenzerorama
3daenzerorama /**
3daenzerorama * Returns the atomic process whose execution failed
3daenzerorama * @return the atomic process whose execution failed or null if other failure ocurred
3daenzerorama */
3daenzerorama public AtomicProcess getAtomicProcess() {
3daenzerorama return atomicProcess;
3daenzerorama }
3daenzerorama
3daenzerorama /**
3daenzerorama * Sets the atomic process whose execution failed
3daenzerorama * @param atomicProcess the atomic process whose execution failed
3daenzerorama */
3daenzerorama public void setAtomicProcess(AtomicProcess atomicProcess) {
3daenzerorama this.atomicProcess = atomicProcess;
3daenzerorama }
3daenzerorama
3daenzerorama /**
3daenzerorama * Returns the overall process whose execution failed
3daenzerorama * @return the overall process whose execution failed
3daenzerorama */
3daenzerorama public Process getProcess() {
3daenzerorama return process;
3daenzerorama }
3daenzerorama
3daenzerorama /**
3daenzerorama * Sets the overall process whose execution failed
3daenzerorama * @param process the overall process whose execution failed
3daenzerorama */
3daenzerorama public void setProcess(Process process) {
3daenzerorama this.process = process;
3daenzerorama }
3daenzerorama
3daenzerorama
3daenzerorama
2ronwalf}