O tipo subjacente de enum e o objecto têm de ser do mesmo tipo ou o objecto tem de ser String. O tipo transmitido foi 'X'; o tipo subjacente de enum foi 'Y'.
Click to search this error in Google
English version
Enum underlying type and the object must be same type or object must be a String. Type passed in was 'X'; the enum underlying type was 'Y'.