info.magnolia.dam.api
Class DamException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by info.magnolia.dam.api.DamException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssetProvider.AssetNotFoundException, AssetProvider.IllegalItemKeyException, AssetProviderRegistry.NoSuchAssetProviderException, AssetProviderRegistry.NoSuchAssetRendererException, PathAwareAssetProvider.PathNotFoundException

public abstract class DamException
extends RuntimeException

An abstract exception class that all DAM exceptions can extend. It is abstract to enforce usage of specific exceptions for specific cases. It is not *named* AbstractDamException to make it slightly more elegant to handle in client code. It is a RuntimeException because when thrown, subclasses of this exception are actually meant to be dealt with by client code (other than, perhaps, presenting the user with an error message of sorts)

See Also:
Serialized Form

Constructor Summary
DamException(String message)
           
DamException(String message, Throwable cause)
           
 
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

DamException

public DamException(String message)

DamException

public DamException(String message,
                    Throwable cause)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.