com.atlassian.bamboo.plugins.stash.rest.common
Class RestErrorCollection

java.lang.Object
  extended by com.atlassian.bamboo.plugins.stash.rest.common.RestErrorCollection

@ExperimentalApi
public class RestErrorCollection
extends Object


Constructor Summary
RestErrorCollection()
           
RestErrorCollection(ErrorCollection simpleErrorCollection)
           
RestErrorCollection(List<String> errors, Integer requestStatus)
           
RestErrorCollection(String error)
           
RestErrorCollection(String error, Integer requestStatus)
           
 
Method Summary
 void addError(String error)
           
 Collection<String> getErrors()
           
 Map<String,List<String>> getFieldErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestErrorCollection

public RestErrorCollection()

RestErrorCollection

public RestErrorCollection(@NotNull
                           ErrorCollection simpleErrorCollection)

RestErrorCollection

public RestErrorCollection(@NotNull
                           String error)

RestErrorCollection

public RestErrorCollection(@NotNull
                           String error,
                           @Nullable
                           Integer requestStatus)

RestErrorCollection

public RestErrorCollection(@NotNull
                           List<String> errors,
                           @Nullable
                           Integer requestStatus)
Method Detail

addError

public void addError(String error)

getErrors

public Collection<String> getErrors()

getFieldErrors

public Map<String,List<String>> getFieldErrors()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.