/* * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.sagemakerruntime.model; import com.amazonaws.AmazonServiceException; /** *
* Model (owned by the customer in the container) returned an error 500. *
*/ public class ModelErrorException extends AmazonServiceException { private static final long serialVersionUID = 1L; /** ** Original status code. *
*/ private Integer originalStatusCode; /** ** Original message. *
*
* Constraints:
* Length: - 2048
*/
private String originalMessage;
/**
*
* The Amazon Resource Name (ARN) of the log stream. *
*/ private String logStreamArn; /** * Constructs a new ModelErrorException with the specified error message. * * @param message Describes the error encountered. */ public ModelErrorException(String message) { super(message); } /** ** Original status code. *
* * @return* Original status code. *
*/ public Integer getOriginalStatusCode() { return originalStatusCode; } /** ** Original status code. *
* * @param originalStatusCode* Original status code. *
*/ public void setOriginalStatusCode(Integer originalStatusCode) { this.originalStatusCode = originalStatusCode; } /** ** Original message. *
*
* Constraints:
* Length: - 2048
*
* @return
* Original message. *
*/ public String getOriginalMessage() { return originalMessage; } /** ** Original message. *
*
* Constraints:
* Length: - 2048
*
* @param originalMessage
* Original message. *
*/ public void setOriginalMessage(String originalMessage) { this.originalMessage = originalMessage; } /** ** The Amazon Resource Name (ARN) of the log stream. *
* * @return* The Amazon Resource Name (ARN) of the log stream. *
*/ public String getLogStreamArn() { return logStreamArn; } /** ** The Amazon Resource Name (ARN) of the log stream. *
* * @param logStreamArn* The Amazon Resource Name (ARN) of the log stream. *
*/ public void setLogStreamArn(String logStreamArn) { this.logStreamArn = logStreamArn; } }