Add exception class and codes