org.jenkinsci.plugins.stashNotifier
Class NotificationResult

java.lang.Object
  extended by org.jenkinsci.plugins.stashNotifier.NotificationResult

public final class NotificationResult
extends Object

convenience class to capture the result of a notification.


Field Summary
 boolean indicatesSuccess
          true if and only if the notification was successful.
 String message
          the error message in case the notification was not succesful or null, otherwise.
 
Method Summary
static NotificationResult newFailure(String message)
          returns a new NotificationResult instance indicating a failed notification.
static NotificationResult newSuccess()
          returns a new NotificationResult instance indicating a successful notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indicatesSuccess

public final boolean indicatesSuccess
true if and only if the notification was successful.


message

public final String message
the error message in case the notification was not succesful or null, otherwise.

Method Detail

newSuccess

public static NotificationResult newSuccess()
returns a new NotificationResult instance indicating a successful notification.

Returns:
a new NotificationResult instance indicating a successful notification

newFailure

public static NotificationResult newFailure(String message)
returns a new NotificationResult instance indicating a failed notification.

Parameters:
message - the message indicating why the notifiation failed
Returns:
a new NotificationResult instance indicating a successful notification


Copyright © 2004-2013. All Rights Reserved.