org.norther.tammi.core.rt.util
Class ExceptionMap

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.norther.tammi.core.rt.util.ExceptionMap
All Implemented Interfaces:
Serializable, Map<String,Exception>, SortedMap<String,Exception>

public class ExceptionMap
extends Exception
implements SortedMap<String,Exception>, Serializable

A map of exceptions.

Version:
$Id: ExceptionMap.java,v 1.3 2009/09/28 15:08:44 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ExceptionMap()
          Constructs a new exception.
ExceptionMap(Map<String,? extends Exception> map)
          Constructs a new exception with the specified map.
ExceptionMap(String message)
          Constructs a new exception with the specified message.
ExceptionMap(String message, Map<String,? extends Exception> map)
          Constructs a new exception with the specified message and map.
 
Method Summary
 void clear()
           
 Comparator<? super String> comparator()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Exception>> entrySet()
           
 boolean equals(Object o)
           
 String firstKey()
           
 Exception get(Object key)
           
 int hashCode()
           
 SortedMap<String,Exception> headMap(String toKey)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 String lastKey()
           
 Exception put(String key, Exception value)
           
 void putAll(Map<? extends String,? extends Exception> m)
           
 Exception remove(Object key)
           
 int size()
           
 SortedMap<String,Exception> subMap(String fromKey, String toKey)
           
 SortedMap<String,Exception> tailMap(String fromKey)
           
 Collection<Exception> values()
           
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionMap

public ExceptionMap()
Constructs a new exception.


ExceptionMap

public ExceptionMap(String message)
Constructs a new exception with the specified message.

Parameters:
message - the message.

ExceptionMap

public ExceptionMap(Map<String,? extends Exception> map)
Constructs a new exception with the specified map.

Parameters:
map - a map of initial exceptions.

ExceptionMap

public ExceptionMap(String message,
                    Map<String,? extends Exception> map)
Constructs a new exception with the specified message and map.

Parameters:
message - the message.
map - a map of initial exceptions.
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<String,Exception>

comparator

public Comparator<? super String> comparator()
Specified by:
comparator in interface SortedMap<String,Exception>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Exception>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Exception>

entrySet

public Set<Map.Entry<String,Exception>> entrySet()
Specified by:
entrySet in interface Map<String,Exception>
Specified by:
entrySet in interface SortedMap<String,Exception>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<String,Exception>
Overrides:
equals in class Object

firstKey

public String firstKey()
Specified by:
firstKey in interface SortedMap<String,Exception>

get

public Exception get(Object key)
Specified by:
get in interface Map<String,Exception>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,Exception>
Overrides:
hashCode in class Object

headMap

public SortedMap<String,Exception> headMap(String toKey)
Specified by:
headMap in interface SortedMap<String,Exception>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Exception>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Exception>
Specified by:
keySet in interface SortedMap<String,Exception>

lastKey

public String lastKey()
Specified by:
lastKey in interface SortedMap<String,Exception>

put

public Exception put(String key,
                     Exception value)
Specified by:
put in interface Map<String,Exception>

putAll

public void putAll(Map<? extends String,? extends Exception> m)
Specified by:
putAll in interface Map<String,Exception>

remove

public Exception remove(Object key)
Specified by:
remove in interface Map<String,Exception>

size

public int size()
Specified by:
size in interface Map<String,Exception>

subMap

public SortedMap<String,Exception> subMap(String fromKey,
                                          String toKey)
Specified by:
subMap in interface SortedMap<String,Exception>

tailMap

public SortedMap<String,Exception> tailMap(String fromKey)
Specified by:
tailMap in interface SortedMap<String,Exception>

values

public Collection<Exception> values()
Specified by:
values in interface Map<String,Exception>
Specified by:
values in interface SortedMap<String,Exception>


Copyright © 2004 The Norther Organization. All rights reserved.