blob: 46d4f047973e09d4426e13823a3fed791bc18ea7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2016 xored software, Inc. and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.ruby.formatter.internal;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* This exception class is used to dump large content to the stack trace field
*/
public class DumpContentException extends Exception {
public DumpContentException(String message) {
super(message);
}
@Override
public void printStackTrace(PrintStream s) {
synchronized (s) {
s.println("========"); //$NON-NLS-1$
s.println(getMessage());
s.println("========"); //$NON-NLS-1$
}
}
@Override
public void printStackTrace(PrintWriter s) {
synchronized (s) {
s.println("========"); //$NON-NLS-1$
s.println(getMessage());
s.println("========"); //$NON-NLS-1$
}
}
}