com.atlassian.confluence.api.model.validation
Class ServiceExceptionSupplier

java.lang.Object
  extended by com.atlassian.confluence.api.model.validation.ServiceExceptionSupplier

public class ServiceExceptionSupplier
extends Object

ServiceException supplier for use with SimpleValidationResult.


Constructor Summary
ServiceExceptionSupplier()
           
 
Method Summary
static com.google.common.base.Function<String,? extends ServiceException> badRequestException()
           
static com.google.common.base.Function<String,ConflictException> conflictException()
           
static com.google.common.base.Function<String,NotFoundException> notFoundException()
           
static com.google.common.base.Supplier<NotFoundException> notFoundException(String errorMsg)
           
static com.google.common.base.Function<String,? extends ServiceException> notImplemented()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceExceptionSupplier

public ServiceExceptionSupplier()
Method Detail

notFoundException

public static com.google.common.base.Function<String,NotFoundException> notFoundException()

notFoundException

public static com.google.common.base.Supplier<NotFoundException> notFoundException(String errorMsg)

conflictException

public static com.google.common.base.Function<String,ConflictException> conflictException()

notImplemented

public static com.google.common.base.Function<String,? extends ServiceException> notImplemented()

badRequestException

public static com.google.common.base.Function<String,? extends ServiceException> badRequestException()


Copyright © 2003–2015 Atlassian. All rights reserved.