Moving methods to exception class