dotty.tools.dotc.semanticdb.internal.InvalidProtocolBufferException.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
package dotty.tools.dotc.semanticdb.internal
import java.io.IOException
@SerialVersionUID(-1616151763072450476L)
class InvalidProtocolBufferException(description: String) extends IOException(description)
object InvalidProtocolBufferException {
def truncatedMessage(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("While parsing a protocol message, the input ended unexpectedly " +
"in the middle of a field. This could mean either that the " +
"input has been truncated or that an embedded message " +
"misreported its own length.")
}
def negativeSize(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("SemanticdbInputStream encountered an embedded string or message " +
"which claimed to have negative size.")
}
def malformedVarint(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("SemanticdbInputStream encountered a malformed varint.")
}
def invalidTag(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message contained an invalid tag (zero).")
}
def invalidEndTag(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message end-group tag did not match expected tag.")
}
def invalidWireType(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message tag had invalid wire type.")
}
def recursionLimitExceeded(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message had too many levels of nesting. May be malicious. " +
"Use SemanticdbInputStream.setRecursionLimit() to increase the depth limit.")
}
def sizeLimitExceeded(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message was too large. May be malicious. " +
"Use SemanticdbInputStream.setSizeLimit() to increase the size limit.")
}
def parseFailure(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Failed to parse the message.")
}
def invalidUtf8(): InvalidProtocolBufferException = {
new InvalidProtocolBufferException("Protocol message had invalid UTF-8.")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy