forked from databricks/databricks-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception.java.tmpl
More file actions
25 lines (20 loc) · 794 Bytes
/
Copy pathexception.java.tmpl
File metadata and controls
25 lines (20 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.core.error.platform;
import com.databricks.sdk.core.DatabricksError;
import com.databricks.sdk.core.error.ErrorDetail;
import com.databricks.sdk.support.Generated;
import java.util.List;
/**
{{.Comment " * " 80}}
*/
@Generated
public class {{.PascalName}} extends {{if .Inherit -}}{{.Inherit.PascalName}}{{else}}DatabricksError{{end}} {
public {{.PascalName}}(String message, List<ErrorDetail> details) {
super("{{.Name}}", message, {{if not .Inherit}}{{.StatusCode}}, {{end}}details);
}
{{if not .Inherit}}
public {{.PascalName}}(String errorCode, String message, List<ErrorDetail> details) {
super(errorCode, message, {{.StatusCode}}, details);
}
{{end}}
}