Class MalformedTypedAstException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.javascript.jscomp.serialization.MalformedTypedAstException
All Implemented Interfaces:
Serializable

public final class MalformedTypedAstException extends RuntimeException
Emitted when deserialization sees a TypedAst with semantic errors.

This excpetion means a TypedAst is flawed in some way. It is distinct from other kinds of expections because it describes a user error, rather than a bug in deserialization. Most likely, the tool that generated the serialized data is faulty.

This exception says nothing about the byte-level encoding or parsing of the input data. Instead, it means that TypedAst parsed from those bytes can't be translated into the compiler's internal representation.

See Also:
  • Constructor Details

    • MalformedTypedAstException

      public MalformedTypedAstException(Object msg)
    • MalformedTypedAstException

      public MalformedTypedAstException(Object msg, Throwable cause)