Initializervapor 4.114.1Vapor
init(file:function:line:column:range:)
Creates a new SourceLocation
init(file: String, function: String, line: UInt, column: UInt, range: Range<UInt>? = nil)
Creates a new SourceLocation
init(file: String, function: String, line: UInt, column: UInt, range: Range<UInt>? = nil)
s5Vapor11ErrorSourceV4file8function4line6column5rangeACSS_SSS2uSnySuGSgtcfc
What are these?4PDUZ
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct ErrorSource
A source-code location.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct UInt
An unsigned integer value type.
@frozen struct Range<Bound> where Bound : Comparable
A half-open interval from a lower bound up to, but not including, an upper bound.
static func capture(file: String = #fileID, function: String = #function, line: UInt = #line, column: UInt = #column, range: Range<UInt>? = nil) -> ErrorSource
Creates a new ErrorSource
for the current call site.
var column: UInt
Number of characters into the line this location starts at.
var file: String
File in which this location exists.
var function: String
Function in which this location exists.
var line: UInt
Line number this location belongs to.
var range: Range<UInt>?
Optional start/end range of the source.