Added exceptions with error types