org.openwms.core.integration.exception
Class NoUniqueResultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openwms.core.integration.exception.DataException
                  extended by org.openwms.core.integration.exception.NoUniqueResultException
All Implemented Interfaces:
Serializable

public class NoUniqueResultException
extends DataException

A NoUniqueResultException is thrown when a single result was expected but multiple entities were found.

Since:
0.1
Version:
$Revision: $
Author:
Heiko Scherrer
See Also:
Serialized Form

Constructor Summary
NoUniqueResultException()
          Create a new NoUniqueResultException.
NoUniqueResultException(Serializable id)
          Create a new NoUniqueResultException with the id of the expected entity.
NoUniqueResultException(String message)
          Create a new NoUniqueResultException with a message text.
NoUniqueResultException(String message, Throwable cause)
          Create a new NoUniqueResultException with a message text and the root exception.
NoUniqueResultException(Throwable cause)
          Create a new NoUniqueResultException with the root exception.
 
Method Summary
 
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

NoUniqueResultException

public NoUniqueResultException()
Create a new NoUniqueResultException.


NoUniqueResultException

public NoUniqueResultException(String message)
Create a new NoUniqueResultException with a message text.

Parameters:
message - Message text as String

NoUniqueResultException

public NoUniqueResultException(Throwable cause)
Create a new NoUniqueResultException with the root exception.

Parameters:
cause - The root exception

NoUniqueResultException

public NoUniqueResultException(String message,
                               Throwable cause)
Create a new NoUniqueResultException with a message text and the root exception.

Parameters:
message - Message text as String
cause - The root exception

NoUniqueResultException

public NoUniqueResultException(Serializable id)
Create a new NoUniqueResultException with the id of the expected entity.

Parameters:
id - Id of the expected entity


Copyright © 2005-2011 openwms.org. All Rights Reserved.