Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f2c81987294965d888f76a6b4ae1e0a58cbc033e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*******************************************************************************
 * Copyright (c) 2009 Red Hat, Inc.
 * 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:
 *    Elliott Baron <ebaron@redhat.com> - initial API and implementation
 *******************************************************************************/
package org.eclipse.linuxtools.valgrind.core;

import org.eclipse.debug.core.ILaunch;


public class ValgrindError extends AbstractValgrindMessage {
	protected int pid;
	
	public ValgrindError(IValgrindMessage message, String text, ILaunch launch, int pid) {
		super(message, text, launch);
		this.pid = pid;
	}
	
	public int getPid() {
		return pid;
	}
	
	@Override
	public String getText() {
		return super.getText() + " [PID: " + pid + "]"; //$NON-NLS-1$ //$NON-NLS-2$
	}
}

Back to the top