01: package org.apache.maven.lifecycle;
02:
03: public class NoSuchLifecycleException extends
04: LifecycleSpecificationException {
05:
06: private final String packaging;
07:
08: public NoSuchLifecycleException(String packaging, String message,
09: Throwable cause) {
10: super (message, cause);
11: this .packaging = packaging;
12: }
13:
14: public NoSuchLifecycleException(String phase, String message) {
15: super (message);
16: this .packaging = phase;
17: }
18:
19: public String getPackaging() {
20: return packaging;
21: }
22:
23: }
|