hudson.plugins.covcomplplot.stub
Class InvalidHudsonProjectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by hudson.plugins.covcomplplot.stub.InvalidHudsonProjectException
All Implemented Interfaces:
Serializable

public class InvalidHudsonProjectException
extends Exception

Invalid Jenkins Project Exception.
This exception is used to minimize the count of exception classes which shows different message. When the constructor is invoked, the appropriate enum value is passed to specify the exact error.

Author:
JunHo Yoon
See Also:
Serialized Form

Constructor Summary
InvalidHudsonProjectException(InvalidHudsonProjectType invalidHudsonProjectType, Object... args)
          Constructor
InvalidHudsonProjectException(InvalidHudsonProjectType invalidHudsonProjectType, Throwable throwable, Object... args)
          Constructor
 
Method Summary
 InvalidHudsonProjectType getInvalidHudsonProjectType()
          Get exception type.
 String getLogMessage()
          Get message constructed from InvalidHudsonProjectType.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidHudsonProjectException

public InvalidHudsonProjectException(InvalidHudsonProjectType invalidHudsonProjectType,
                                     Object... args)
Constructor

Parameters:
invalidHudsonProjectType - exception type.
args - arguments which InvalidHudsonProjectType needs.

InvalidHudsonProjectException

public InvalidHudsonProjectException(InvalidHudsonProjectType invalidHudsonProjectType,
                                     Throwable throwable,
                                     Object... args)
Constructor

Parameters:
invalidHudsonProjectType - exception type
throwable - internal exception
args - arguments which InvalidHudsonProjectType needs.
Method Detail

getLogMessage

public String getLogMessage()
Get message constructed from InvalidHudsonProjectType.

Returns:
log message

getInvalidHudsonProjectType

public InvalidHudsonProjectType getInvalidHudsonProjectType()
Get exception type.

Returns:
exception type


Copyright © 2004-2011. All Rights Reserved.