public class PolicyViolation extends TypedErrorInfo
| Constructor and Description |
|---|
PolicyViolation(String type,
com.fasterxml.jackson.databind.node.ObjectNode policyErrorInfo)
Initializes a new instance of PolicyViolation.
|
| Modifier and Type | Method and Description |
|---|---|
PolicyViolationErrorInfo |
policyErrorInfo() |
info, typepublic PolicyViolation(String type, com.fasterxml.jackson.databind.node.ObjectNode policyErrorInfo) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
type - the error typepolicyErrorInfo - the error detailscom.fasterxml.jackson.core.JsonParseException - if the policyErrorInfo has invalid content.com.fasterxml.jackson.databind.JsonMappingException - if the policyErrorInfo's JSON does not match the expected schema.IOException - if an IO error occurs.public PolicyViolationErrorInfo policyErrorInfo()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/