Package org.partiql.lang.errors

Types

Link copied to clipboard
Link copied to clipboard
enum ErrorCategory : Enum<ErrorCategory>

Categories for errors. Should map to stages in the Compiler and Evaluator.

Link copied to clipboard
enum ErrorCode : Enum<ErrorCode>

Each ErrorCode contains an immutable set of Property. These are the properties used as keys in PropertyValueMap created at each error location.

Link copied to clipboard
class PartiQLException(message: String) : RuntimeException

Base class for PartiQL Exceptions

Link copied to clipboard
data class Problem(sourceLocation: SourceLocationMeta, details: ProblemDetails)

In general, a Problem is a semantic error or warning encountered during compilation of a query.

Link copied to clipboard
interface ProblemDetails

Info related to the problem's severity and a human-readable message.

Link copied to clipboard
interface ProblemHandler

Handles the encountered problem.

Link copied to clipboard
enum ProblemSeverity : Enum<ProblemSeverity>

Property of ProblemDetails that represents the severity level.

Link copied to clipboard
enum Property : Enum<Property>

Each possible value that can be reported as part of an error has a Property. Property is used as a key in PropertyValueMap.

Link copied to clipboard
enum PropertyType : Enum<PropertyType>

A PropertyType is a top level type for all types of values that appear as properties in error codes. Clients can access the type (as a Class<*>) of a property's value through getType().

Link copied to clipboard
abstract class PropertyValue(type: PropertyType)

A PropertyValue is the top level type for all values that appear as properties in error codes. For each type of value that can be a Property there is a method to allow clients to obtain the correctly typed value.

Link copied to clipboard
class PropertyValueMap(map: EnumMap<Property, PropertyValue>)

A typed map of properties used to capture an contextual information about an error.