Error
io.joern.console.Error
class Error(message: String) extends RuntimeException, NoStackTrace
If you need to throw an Exception that renders ok-ish to the user. e.g. cpg.help
when no cpg is loaded:
joern> cpg.help
io.joern.console.Error: No CPG loaded for project c - try e.g. `help|importCode|importCpg|open`
In comparison, with a regular Exception the user sees
joern> cpg.help
java.lang.RuntimeException: No CPG loaded for project console1665115232529348622
- try e.g. `help|importCode|importCpg|open`
at io.joern.console.workspacehandling.WorkspaceManager.cpg(WorkspaceManager.scala:218)
at io.joern.console.Console.cpg(Console.scala:137)
... 39 elided
Attributes
- Graph
-
- Supertypes
-
trait NoStackTraceclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- Throwable
Attributes
- Definition Classes
-
NoStackTrace -> Throwable
- Inherited from:
- NoStackTrace
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- Throwable
Attributes
- Inherited from:
- NoStackTrace
Attributes
- Inherited from:
- Throwable
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Inherited from:
- Throwable
In this article