Introduced the enum class ErrorType.