Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 928fcedfdfcc37220901dcc5c3660af034aca670 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*******************************************************************************
 * Copyright (c) 2013 Atos
 * 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:
 *     Arthur Daussy - initial implementation
 *******************************************************************************/
package org.eclipse.papyrus.team.collaborative.reports;

import org.eclipse.core.runtime.Status;

/**
 * The Class CollabStatus.
 */
public class CollabStatus extends Status {

	/**
	 * Instantiates a new collab status.
	 * 
	 * @param severity
	 *        the severity
	 * @param pluginId
	 *        the plugin id
	 * @param code
	 *        the code
	 * @param message
	 *        the message
	 * @param exception
	 *        the exception
	 */
	public CollabStatus(int severity, String pluginId, int code, String message, Throwable exception) {
		super(severity, pluginId, code, message, exception);
	}

	/**
	 * Instantiates a new collab status.
	 * 
	 * @param severity
	 *        the severity
	 * @param pluginId
	 *        the plugin id
	 * @param message
	 *        the message
	 * @param exception
	 *        the exception
	 */
	public CollabStatus(int severity, String pluginId, String message, Throwable exception) {
		super(severity, pluginId, message, exception);
	}

	/**
	 * Instantiates a new collab status.
	 * 
	 * @param severity
	 *        the severity
	 * @param pluginId
	 *        the plugin id
	 * @param message
	 *        the message
	 */
	public CollabStatus(int severity, String pluginId, String message) {
		super(severity, pluginId, message);
	}

	/**
	 * Creates the error status.
	 * 
	 * @param message
	 *        the message
	 * @return the collab status
	 */
	public static CollabStatus createErrorStatus(String message) {
		return new CollabStatus(ERROR, org.eclipse.papyrus.team.collaborative.Activator.PLUGIN_ID, message);
	}

	/**
	 * Creates the error status.
	 * 
	 * @param message
	 *        the message
	 * @param e
	 *        the e
	 * @return the collab status
	 */
	public static CollabStatus createErrorStatus(String message, Throwable e) {
		return new CollabStatus(ERROR, org.eclipse.papyrus.team.collaborative.Activator.PLUGIN_ID, message, e);
	}



}

Back to the top