CarbonError

public struct CarbonError : Error

Represents an error in a Carbon action.

  • Snippet that was being rendered when the action failed.

    Declaration

    Swift

    public let snippet: String
  • Describes the reason for the failure.

    Declaration

    Swift

    public let cause: CarbonError.Cause
  • Initializes a CarbonError

    Declaration

    Swift

    public init(snippet: String, cause: CarbonError.Cause)

    Parameters

    snippet

    Snippet of code that was being rendered when the action failed.

    cause

    Reason for the failure.

  • Models the reason of a carbon error.

    See more

    Declaration

    Swift

    public enum Cause : Error, CustomStringConvertible