2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
// EnumParserError.swift
|
2021-06-21 14:42:46 -06:00
|
|
|
// mrousavy
|
2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 18.12.20.
|
2021-06-01 05:07:57 -06:00
|
|
|
// Copyright © 2020 mrousavy. All rights reserved.
|
2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
/**
|
|
|
|
An error raised when the given descriptor (TypeScript string union type) cannot be parsed and converted to a Swift enum.
|
|
|
|
*/
|
|
|
|
enum EnumParserError: Error {
|
|
|
|
/**
|
|
|
|
Raised when the descriptor does not match any of the possible values.
|
|
|
|
*/
|
|
|
|
case invalidValue
|
|
|
|
}
|