Lines Matching full:context
23 * Exception which carries around structured context.
27 /** {@code non-null;} human-oriented context of the exception */
28 private StringBuffer context;
31 * Augments the given exception with the given context, and return the
37 * @param str {@code non-null;} context to add
83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
87 context = new StringBuffer(200);
95 out.println(context);
102 out.println(context);
106 * Adds a line of context to this instance.
108 * @param str {@code non-null;} new context
115 context.append(str);
117 context.append('\n');
122 * Gets the context.
124 * @return {@code non-null;} the context
127 return context.toString();
131 * Prints the message and context.
137 out.print(context);
141 * Prints the message and context.
147 out.print(context);