Implement IllegalStateException and IllegalStateException