ErrorUtility.swift 310 B

12345678910
  1. import Foundation
  2. internal func raiseError(_ message: String) -> Never {
  3. #if canImport(Darwin)
  4. NSException(name: .internalInconsistencyException, reason: message, userInfo: nil).raise()
  5. #endif
  6. // This won't be reached when ObjC is available and the exception above is raisd
  7. fatalError(message)
  8. }