001    package com.softwarementors.extjs.djn.router.processor;
002    
003    
004    public class ExceptionInformation {
005      /* package */ String exceptionClass;
006      /* package */ String message;
007      // Future development: we may have an exception handler that allows
008      // us to register exception processors to pass extra data
009      // private Map<String, Object> extraData = new HashMap<String,Object>();
010      
011      private ExceptionInformation() {
012        // Do nothing
013      }
014      
015      public static ExceptionInformation create( Throwable e ) {
016        assert e != null;
017        
018        ExceptionInformation result = new ExceptionInformation();
019        result.exceptionClass = e.getClass().getName();
020        result.message = e.getMessage();
021        return result;
022      }
023    }