package org.opendaylight.yangtools.yang.parser.spi.meta;
import com.google.common.base.Preconditions;
+import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
public class ReactorException extends Exception {
private static final long serialVersionUID = 1L;
private final ModelProcessingPhase phase;
+ private final SourceIdentifier sourceIdentifier;
- public ReactorException(ModelProcessingPhase phase, String message, Throwable cause) {
+ public ReactorException(ModelProcessingPhase phase, String message, SourceIdentifier sourceId, Throwable cause) {
super(message, cause);
this.phase = Preconditions.checkNotNull(phase);
+ this.sourceIdentifier = sourceId;
}
- public ReactorException(ModelProcessingPhase phase, String message) {
+ public ReactorException(ModelProcessingPhase phase, String message, SourceIdentifier sourceId) {
super(message);
this.phase = Preconditions.checkNotNull(phase);
+ this.sourceIdentifier = sourceId;
}
public final ModelProcessingPhase getPhase() {
return phase;
}
+ public final SourceIdentifier getSourceIdentifier() {
+ return sourceIdentifier;
+ }
}