Accumulator

com.ossuminc.riddl.language.Messages.Accumulator
See theAccumulator companion object

A utility to help accumulate error messages with regards to the settings in the CommonOptions

Attributes

Companion
object
Source
Messages.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add(msg: Message): this.type

Add an arbitrary Message to the accumulated Messages

Add an arbitrary Message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addError(loc: At, msg: String): this.type

Add an Error message to the accumulated Messages

Add an Error message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addMissing(loc: At, msg: String): this.type

Add a MissingWarning message to the accumulated Messages

Add a MissingWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addSevere(loc: At, msg: String): this.type

Add a SevereError message to the accumulated Messages

Add a SevereError message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addStyle(loc: At, msg: String): this.type

Add a StyleWarning message to the accumulated Messages

Add a StyleWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addUsage(loc: At, msg: String): this.type

Add a UsageWarning message to the accumulated Messages

Add a UsageWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def addWarning(loc: At, msg: String): this.type

Add a Warning message to the accumulated Messages

Add a Warning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def error(message: String, loc: At): this.type

Add an Error message to the accumulated Messages

Add an Error message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def info(message: String, loc: At): this.type

Add an Info message to the accumulated Messages

Add an Info message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Attributes

Source
Messages.scala

Attributes

Source
Messages.scala
def severe(message: String, loc: At): this.type

Add a SevereError message to the accumulated Messages

Add a SevereError message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala
def size: Int

Attributes

Source
Messages.scala
def style(message: String, loc: At): this.type

Add a StyleWarning message to the accumulated Messages

Add a StyleWarning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Attributes

Source
Messages.scala
def warning(message: String, loc: At): this.type

Add a Warning message to the accumulated Messages

Add a Warning message to the accumulated Messages

Value parameters

loc

The location in the source related to the message.

message

The text of the message to add

Attributes

Returns

This type, so you can chain another call to this accumulator

Source
Messages.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product