Example usage for com.amazonaws.services.sns.model AuthorizationErrorException AuthorizationErrorException

List of usage examples for com.amazonaws.services.sns.model AuthorizationErrorException AuthorizationErrorException

Introduction

In this page you can find the example usage for com.amazonaws.services.sns.model AuthorizationErrorException AuthorizationErrorException.

Prototype

public AuthorizationErrorException(String message) 

Source Link

Document

Constructs a new AuthorizationErrorException with the specified error message.

Usage

From source file:eu.openg.aws.sns.internal.SNSExceptionBuilder.java

License:Apache License

static SNSExceptionBuilder newAuthorizationErrorException(String topic) {
    return new SNSExceptionBuilder(
            new AuthorizationErrorException("User: arn:aws:iam::0:user/test is not authorized "
                    + "to perform: SNS:CreateTopic " + "on resource: arn:aws:sns:us-east-1:0:" + topic),
            "AuthorizationError", 403);
}