Structurevapor 4.114.1Vapor
ErrorSource
A source-code location.
struct ErrorSource
A source-code location.
struct ErrorSource
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.
protocol Sendable
init(file: String, function: String, line: UInt, column: UInt, range: Range<UInt>? = nil)
Creates a new SourceLocation
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.