Package org.auraframework.throwable

Examples of org.auraframework.throwable.ClientSideEventException


        return ClientSideEventException.class;
    }

    @Override
    public void write(Object value, Map<String, Object> attributes, Appendable out) throws IOException {
        ClientSideEventException e = (ClientSideEventException) value;
        JsonSerializationContext jsonCxt = Aura.getContextService().getCurrentContext().getJsonSerializationContext();
        Map<String, Object> serialized = Maps.newHashMap();
        serialized.put("exceptionEvent", Boolean.TRUE);
        serialized.put("event", e.getEvent());
        if (jsonCxt != null && jsonCxt.format()) {
            serialized.put("defaultHandler", e.getDefaultHandler());
        } else {
            serialized.put("defaultHandler", e.getDefaultHandler() == null ? null : e.getDefaultHandler().toString());
        }
        Json.serialize(serialized, out, jsonCxt);
    }
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.ClientSideEventException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.