compbio.metadata
Class LimitExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by compbio.metadata.JobSubmissionException
              extended by compbio.metadata.LimitExceededException
All Implemented Interfaces:
Serializable

public class LimitExceededException
extends JobSubmissionException

This exception is thrown if the task larger in size that the limit that applies to the calculation.

Version:
1.0 February 2010
Author:
pvtroshin
See Also:
Limit, Serialized Form

Constructor Summary
LimitExceededException(String message)
           
 
Method Summary
 int getActualNumberofSequences()
           
 int getNumberOfSequencesAllowed()
           
 int getSequenceLenghtActual()
           
 int getSequenceLenghtAllowed()
           
static LimitExceededException newLimitExceeded(Limit<?> limit, List<FastaSequence> seqs)
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimitExceededException

public LimitExceededException(String message)
Method Detail

newLimitExceeded

public static LimitExceededException newLimitExceeded(Limit<?> limit,
                                                      List<FastaSequence> seqs)

getNumberOfSequencesAllowed

public int getNumberOfSequencesAllowed()

getActualNumberofSequences

public int getActualNumberofSequences()

getSequenceLenghtAllowed

public int getSequenceLenghtAllowed()

getSequenceLenghtActual

public int getSequenceLenghtActual()