de.smartics.properties.api.core.context.alias
Class DuplicateAliasException

Package class diagram package DuplicateAliasException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.context.alias.AliasException
                  extended by de.smartics.properties.api.core.context.alias.DuplicateAliasException
All Implemented Interfaces:
Serializable

public final class DuplicateAliasException
     
     
extends AliasException

Signals that an alias points to two different physical resources.

See Also:
Serialized Form

Constructor Summary
DuplicateAliasException(String alias, String oldTarget, String newTarget)
          Convenience constructor without a cause.
DuplicateAliasException(Throwable cause, String alias, String oldTarget, String newTarget)
          Default constructor.
 
Method Summary
 String getNewTarget()
          Returns the new target value that differs from the previously stored.
 String getOldTarget()
          Returns the target value stored with the alias.
 
Methods inherited from class de.smartics.properties.api.core.context.alias.AliasException
getAlias
 
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

DuplicateAliasException

public DuplicateAliasException(String alias,
                               String oldTarget,
                               String newTarget)
Convenience constructor without a cause.

Parameters:
alias - the alias that signals a problem.
oldTarget - the target value stored with the alias.
newTarget - the new target value that differs from the previously stored.

DuplicateAliasException

public DuplicateAliasException(Throwable cause,
                               String alias,
                               String oldTarget,
                               String newTarget)
Default constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
alias - the alias that signals a problem.
oldTarget - the target value stored with the alias.
newTarget - the new target value that differs from the previously stored.
Method Detail

getOldTarget

public String getOldTarget()
Returns the target value stored with the alias.

Returns:
the target value stored with the alias.

getNewTarget

public String getNewTarget()
Returns the new target value that differs from the previously stored.

Returns:
the new target value that differs from the previously stored.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.