adding basic errors that can be thrown