Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.makeandbuild.rest.serializers;
 
 
 
    @Override
    public void serialize(RuntimeException valueJsonGenerator jgenSerializerProvider providerthrows IOExceptionJsonProcessingException {
        jgen.writeStartObject();
        writeObjectField(jgen"message"value.getMessage());
        writeObjectField(jgen"localizedMessage"value.getLocalizedMessage());
        writeObjectField(jgen"class"value.getClass().getName());
        jgen.writeEndObject();
    }
New to GrepCode? Check out our FAQ X