Subversion Repositories SmartDukaan

Rev

Rev 21574 | Rev 23568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21574 Rev 23405
Line 28... Line 28...
28
		} catch (JsonProcessingException e) {
28
		} catch (JsonProcessingException e) {
29
			LOGGER.error("Error occured while converting response to json", e);
29
			LOGGER.error("Error occured while converting response to json", e);
30
			throw e;
30
			throw e;
31
		}
31
		}
32
	}
32
	}
-
 
33
	
-
 
34
	public String createResponseString(Object object) throws Exception {
-
 
35
		try {
-
 
36
			return objectMapper.writeValueAsString(object);
-
 
37
		} catch (JsonProcessingException e) {
-
 
38
			LOGGER.error("Error occured while converting response to json", e);
-
 
39
			throw e;
-
 
40
		}
-
 
41
		
-
 
42
	}
33
}
43
}