Removed enum class

enum no longer needed, exception class added instead