Skip to content

Instantly share code, notes, and snippets.

@bill350
Created March 29, 2018 19:51
Show Gist options
  • Select an option

  • Save bill350/432463399515f7a5b24b8ff7265083a3 to your computer and use it in GitHub Desktop.

Select an option

Save bill350/432463399515f7a5b24b8ff7265083a3 to your computer and use it in GitHub Desktop.
/// Specify the error display context when hasData is true : use the error message, or use data oriented priority
///
/// - dataOriented: For this type, the error message will show that data inconsistency is possible
/// - errorOriented: The error message always use the Error type localized message if available, default message if needed
enum ErrorContext {
case dataOriented
case errorOriented
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment