Lines Matching defs:context
23 * Exception which carries around structured context.
26 /** {@code non-null;} human-oriented context of the exception */
27 private StringBuffer context;
30 * Augments the given exception with the given context, and return the
36 * @param str {@code non-null;} context to add
82 String ctx = ((ExceptionWithContext) cause).context.toString();
83 context = new StringBuffer(ctx.length() + 200);
84 context.append(ctx);
86 context = new StringBuffer(200);
94 out.println(context);
101 out.println(context);
105 * Adds a line of context to this instance.
107 * @param str {@code non-null;} new context
114 context.append(str);
116 context.append('\n');
121 * Gets the context.
123 * @return {@code non-null;} the context
126 return context.toString();
130 * Prints the message and context.
136 out.print(context);
140 * Prints the message and context.
146 out.print(context);