title: How do I display different alert view functionality when doing error handling with Enum + Switch?
body: <p>I have a ViewController class that has couple textfields that get passed as parameters in the Authenticator class. What I want to know is how can I have different alertView error codes using the enums. I cannot access the enum from the ViewController class. </p>
  
  <pre><code>class ViewController {
      var full_name : String?
      var age : Int?
      private var auth: Authenticator()
  
      auth_user (full_name: String?, age: Int?) {
            .....
           try auth.verify_name(full_name: String?) 
           try auth.verify_age(age: Int?)
  
      }
  
  }
  
  class Auth {
     ....
     enum AuthError: Error {
         case ageIsBelow13
         case invalidAge
         case invalidName
  
     }
  
  
  }
  </code></pre>