org.intermine.api.bag
Class IncompatibleTypesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.intermine.api.bag.IncompatibleTypesException
All Implemented Interfaces:
java.io.Serializable

public class IncompatibleTypesException
extends java.lang.RuntimeException

Exception thrown when given bags are of incompatible types, has methods to set and fetch the types

See Also:
Serialized Form

Constructor Summary
IncompatibleTypesException(java.lang.String msg)
          Constructs an IncompatibleBagTypesException with the specified detail message.
IncompatibleTypesException(java.lang.String msg, java.lang.Throwable t)
          Constructs an IncompatibleBagTypesException with the specified detail message and nested throwable.
IncompatibleTypesException(java.lang.Throwable t)
          Constructs an IncompatibleBagTypesException with the specified nested throwable.
 
Method Summary
 java.util.Collection<java.lang.String> getTypes()
          Get the bag types that were incompatible.
 void setTypes(java.util.Collection<java.lang.String> types)
          Set the bag types that were incompatible.
 
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

IncompatibleTypesException

public IncompatibleTypesException(java.lang.String msg)
Constructs an IncompatibleBagTypesException with the specified detail message.

Parameters:
msg - the detail message

IncompatibleTypesException

public IncompatibleTypesException(java.lang.Throwable t)
Constructs an IncompatibleBagTypesException with the specified nested throwable.

Parameters:
t - the nested throwable

IncompatibleTypesException

public IncompatibleTypesException(java.lang.String msg,
                                  java.lang.Throwable t)
Constructs an IncompatibleBagTypesException with the specified detail message and nested throwable.

Parameters:
msg - the detail message
t - the nested throwable
Method Detail

setTypes

public void setTypes(java.util.Collection<java.lang.String> types)
Set the bag types that were incompatible.

Parameters:
types - the bag types

getTypes

public java.util.Collection<java.lang.String> getTypes()
Get the bag types that were incompatible.

Returns:
the incompatible types