org.slim3.commons.exception
Class CastRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.slim3.commons.exception.SRuntimeException
                  extended by org.slim3.commons.exception.CastRuntimeException
All Implemented Interfaces:
Serializable

public class CastRuntimeException
extends SRuntimeException

This exception is thrown when a class can not cast.

Since:
3.0
Author:
higa
See Also:
Serialized Form

Constructor Summary
CastRuntimeException(Class<?> srcClass, Class<?> destClass)
          Constructor.
 
Method Summary
 Class<?> getDestClass()
          Returns the destination class.
 Class<?> getSrcClass()
          Returns the source class.
 
Methods inherited from class org.slim3.commons.exception.SRuntimeException
convertCauseMessage, getArgs, getMessageCode
 
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

CastRuntimeException

public CastRuntimeException(Class<?> srcClass,
                            Class<?> destClass)
Constructor.

Parameters:
srcClass - the source class
destClass - the destination class
Method Detail

getSrcClass

public Class<?> getSrcClass()
Returns the source class.

Returns:
the source class

getDestClass

public Class<?> getDestClass()
Returns the destination class.

Returns:
the destination class


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.