final case class UserFunctionError(message: String = "", code: String = "", detail: String = "", sourceLocations: Seq[SourceLocation] = _root_.scala.Seq.empty, severity: Severity = kalix.protocol.discovery.UserFunctionError.Severity.UNSPECIFIED, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[UserFunctionError] with Product with Serializable
An error detected by the proxy to be reported to the user.
The function should attempt to load the source code for any source code locations present in the file, and use the information in the source code location to extract the relevant lines of code, and highlight the column with a caret. For example, this is what an error may look like:
ERROR: KLX-00023 Event sourced entity method GetCart input parameter GetCartRequest does not declare a field with an component id. To fix this issue, annotate one of the fields in GetCartRequest with kalix.field.id, for example, if the first field, id, is the component id, you might add this:
string id = 1 [(kalix.field).id = true];
At shoppingcart.proto:15: rpc GetCart(GetCartRequest) returns (Cart); ^ At shoppingcart.proto:63: message GetCartRequest { string id = 1; }
- message
A single line message that describes the error. This message should always be displayed when the error is rendered.
- code
The error code. Each class of error has a unique code. Typically this code should be displayed before the error message.
- detail
A longer message explaining the error. This message may be multiple lines long, may include suggestions of how to fix the error, code snippets, URLs to go and read for more information, etc. If a user has configured logging to be less verbose, this detail may be left off, or in a UI may be hidden in an expandable section.
- sourceLocations
Zero or more source locations that are associated with this error. If the error is in a protobuf descriptor, this should contain at least one location.
- Annotations
- @SerialVersionUID()
- Source
- UserFunctionError.scala
- Alphabetic
- By Inheritance
- UserFunctionError
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UserFunctionError(message: String = "", code: String = "", detail: String = "", sourceLocations: Seq[SourceLocation] = _root_.scala.Seq.empty, severity: Severity = kalix.protocol.discovery.UserFunctionError.Severity.UNSPECIFIED, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- message
A single line message that describes the error. This message should always be displayed when the error is rendered.
- code
The error code. Each class of error has a unique code. Typically this code should be displayed before the error message.
- detail
A longer message explaining the error. This message may be multiple lines long, may include suggestions of how to fix the error, code snippets, URLs to go and read for more information, etc. If a user has configured logging to be less verbose, this detail may be left off, or in a UI may be hidden in an expandable section.
- sourceLocations
Zero or more source locations that are associated with this error. If the error is in a protobuf descriptor, this should contain at least one location.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from UserFunctionError toany2stringadd[UserFunctionError] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (UserFunctionError, B)
- Implicit
- This member is added by an implicit conversion from UserFunctionError toArrowAssoc[UserFunctionError] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllSourceLocations(__vs: Iterable[SourceLocation]): UserFunctionError
- def addSourceLocations(__vs: SourceLocation*): UserFunctionError
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearSourceLocations: UserFunctionError
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val code: String
- def companion: UserFunctionError.type
- Definition Classes
- UserFunctionError → GeneratedMessage
- val detail: String
- def discardUnknownFields: UserFunctionError
- def ensuring(cond: (UserFunctionError) => Boolean, msg: => Any): UserFunctionError
- Implicit
- This member is added by an implicit conversion from UserFunctionError toEnsuring[UserFunctionError] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (UserFunctionError) => Boolean): UserFunctionError
- Implicit
- This member is added by an implicit conversion from UserFunctionError toEnsuring[UserFunctionError] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): UserFunctionError
- Implicit
- This member is added by an implicit conversion from UserFunctionError toEnsuring[UserFunctionError] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): UserFunctionError
- Implicit
- This member is added by an implicit conversion from UserFunctionError toEnsuring[UserFunctionError] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- UserFunctionError → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- UserFunctionError → GeneratedMessage
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- UserFunctionError → GeneratedMessage
- val severity: Severity
- val sourceLocations: Seq[SourceLocation]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- UserFunctionError → GeneratedMessage
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[UserFunctionError, UserFunctionError]) => Mutation[UserFunctionError]*): UserFunctionError
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withCode(__v: String): UserFunctionError
- def withDetail(__v: String): UserFunctionError
- def withMessage(__v: String): UserFunctionError
- def withSeverity(__v: Severity): UserFunctionError
- def withSourceLocations(__v: Seq[SourceLocation]): UserFunctionError
- def withUnknownFields(__v: UnknownFieldSet): UserFunctionError
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- UserFunctionError → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from UserFunctionError toStringFormat[UserFunctionError] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (UserFunctionError, B)
- Implicit
- This member is added by an implicit conversion from UserFunctionError toArrowAssoc[UserFunctionError] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.