Use proper exceptions for parsing block