All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.partiql.lang.errors.Problem.kt Maven / Gradle / Ivy

There is a newer version: 1.0.0-perf.1
Show newest version
package org.partiql.lang.errors

import org.partiql.lang.ast.SourceLocationMeta

/**
 * In general, a [Problem] is a semantic error or warning encountered during compilation of a query.
 *
 * @param sourceLocation stores the location (line and column) in the query the problem occurred
 * @param details details related to the problem's severity and a human-readable message
 */
data class Problem(val sourceLocation: SourceLocationMeta, val details: ProblemDetails) {
    override fun toString(): String =
        "$sourceLocation: ${details.message}"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy