package com.sonatype.buildserver.monitor;
import org.hudsonci.rest.model.build.BuildDTO;
import org.hudsonci.rest.model.project.HealthDTO;
import org.hudsonci.rest.model.project.ProjectDTO;
extends ProjectDTO
{
private ProjectDTO old;
private String errorMessage;
private Exception exception;
public ErrorJob( ProjectDTO old, String errorMessage, Exception e )
{
this.old = old;
this.errorMessage = errorMessage;
this.exception = e;
}
{
return exception;
}
{
this.exception = exception;
}
{
return errorMessage;
}
{
this.errorMessage = errorMessage;
}
{
return old;
}
{
if ( old != null )
return old.getBlockedReason();
return null;
}
{
if ( old != null )
return old.getDescription();
return null;
}
{
if ( old != null )
return old.getHealth();
return null;
}
{
if ( old != null )
return old.getLastBuild();
return null;
}
{
if ( old != null )
return old.getName();
return null;
}
{
if ( old != null )
return old.getType();
return null;
}
{
if ( old != null )
return old.getUrl();
return null;
}
{
if ( old != null )
return old.isBlocked();
return super.isBlocked();
}
{
if ( old != null )
return old.isConcurrent();
return super.isConcurrent();
}
{
if ( old != null )
return old.isConfigurable();
return super.isConfigurable();
}
{
if ( old != null )
return old.isEnabled();
return super.isEnabled();
}
{
if ( old != null )
return old.isQueued();
return super.isQueued();
}
}