org.hippoecm.hst.configuration.channel
Class ChannelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.hippoecm.hst.configuration.channel.ChannelException
All Implemented Interfaces:
Serializable

public class ChannelException
extends Exception

Thrown when a channel-related error occured. A channel exception has a type with a key that can be used for i18n of the error messages. A channel exception can also contain a number of parameters that can be used in the i18n error message. Which parameters are included should be documented in the method where the exception is thrown.

See Also:
Serialized Form

Nested Class Summary
static class ChannelException.Type
          Type of a channel exception.
 
Constructor Summary
ChannelException(String message)
           
ChannelException(String message, ChannelException.Type type, String... parameters)
           
ChannelException(String message, Throwable cause)
           
ChannelException(String message, Throwable cause, ChannelException.Type type, String... parameters)
           
 
Method Summary
 String[] getParameters()
           
 ChannelException.Type getType()
           
 
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

ChannelException

public ChannelException(String message)

ChannelException

public ChannelException(String message,
                        Throwable cause)

ChannelException

public ChannelException(String message,
                        ChannelException.Type type,
                        String... parameters)

ChannelException

public ChannelException(String message,
                        Throwable cause,
                        ChannelException.Type type,
                        String... parameters)
Method Detail

getType

public ChannelException.Type getType()

getParameters

public String[] getParameters()


Copyright © 2008-2012 Hippo. All Rights Reserved.