refactor Exception class
bug fix at JSON Creation