Exception
open class Exception : Error, CustomStringConvertibleAn error that can be thrown. Encapsulates the type of error, the description, and any additional metadata.
- 
                  
                  The error that caused the exception. DeclarationSwift public let error: Error
- 
                  
                  A description of the exception, or nil if none exists. DeclarationSwift public let message: String?
- 
                  
                  The call stack at the time the exception was thrown. DeclarationSwift public let stackTrace: [String]
- 
                  
                  DeclarationSwift public var description: String { get }
- 
                  
                  Initializes an Exception instance. DeclarationSwift public init(error:Error, message:String?, stackTrace:[String]? = nil)ParameterserrorThe error causing the exception. messageA human-readable message explaining the error. stackTraceThe stack trace at the time the exception was thrown. Defaults to Thread.callStackSymbols.
- 
                  
                  The components of the description of this exception. Subclasses should override this method to return custom information in the description. Subclasses should prepend the superclass’ implementation to their return value. DeclarationSwift open func descriptionComponents() -> [String]
 Exception Class Reference
        Exception Class Reference