title: Check if certain string exist in my enum values without NoSuchElement Exception
body: <p>I have the following code:  </p>
  
  <pre><code>object Order extends Enumeration("asc", "desc") {
    type OrderType = Value
    val asc, desc = Value
    }
  </code></pre>
  
  <p>And i use it:  </p>
  
  <pre><code>  val someStr:String = "someStr"
    val order = Order.withName(someStr)
  </code></pre>
  
  <p>This gives me the enum of the input string, but if i send string "asc1" i get Exception:  </p>
  
  <pre><code>NoSuchElementException: None.get (ProductRequest.scala
  </code></pre>
  
  <p>My question is - Can i iterate the values and check if the strings exists? This way i can throw better detailed exception..  </p>
  
  <p>I was thinking i can iterate Order.values -> but could not find something useful</p>
  
  <p>Thanks</p>