Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae7d84a

Browse files
committed
Fix SDK response exception type
1 parent4efbf90 commitae7d84a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/main/kotlin/com/coder/gateway/sdk/CoderRestClient.kt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ open class CoderRestClient(
163163

164164
/**
165165
* Retrieves the available workspaces created by the user.
166-
* @throws [ApiResponseException].
166+
* @throws [APIResponseException].
167167
*/
168168
funworkspaces():List<Workspace> {
169169
val workspacesResponse= retroRestClient.workspaces("owner:me").execute()
@@ -193,7 +193,7 @@ open class CoderRestClient(
193193
* does not include agents when the workspace is off so this can be used to
194194
* get them instead, just like `coder config-ssh` does (otherwise we risk
195195
* removing hosts from the SSH config when they are off).
196-
* @throws [ApiResponseException].
196+
* @throws [APIResponseException].
197197
*/
198198
funresources(workspace:Workspace):List<WorkspaceResource> {
199199
val resourcesResponse= retroRestClient.templateVersionResources(workspace.latestBuild.templateVersionID).execute()
@@ -212,7 +212,7 @@ open class CoderRestClient(
212212
}
213213

214214
/**
215-
* @throws [ApiResponseException].
215+
* @throws [APIResponseException].
216216
*/
217217
privatefuntemplate(templateID:UUID):Template {
218218
val templateResponse= retroRestClient.template(templateID).execute()
@@ -223,7 +223,7 @@ open class CoderRestClient(
223223
}
224224

225225
/**
226-
* @throws [ApiResponseException].
226+
* @throws [APIResponseException].
227227
*/
228228
funstartWorkspace(workspace:Workspace):WorkspaceBuild {
229229
val buildRequest=CreateWorkspaceBuildRequest(null,WorkspaceTransition.START)
@@ -235,7 +235,7 @@ open class CoderRestClient(
235235
}
236236

237237
/**
238-
* @throws [ApiResponseException].
238+
* @throws [APIResponseException].
239239
*/
240240
funstopWorkspace(workspace:Workspace):WorkspaceBuild {
241241
val buildRequest=CreateWorkspaceBuildRequest(null,WorkspaceTransition.STOP)
@@ -254,7 +254,7 @@ open class CoderRestClient(
254254
* 2. The agent gets a new ID and token on each START build. Many template
255255
* authors are not diligent about making sure the agent gets restarted
256256
* with this information when we do two START builds in a row.
257-
* @throws [ApiResponseException].
257+
* @throws [APIResponseException].
258258
*/
259259
funupdateWorkspace(workspace:Workspace):WorkspaceBuild {
260260
val template= template(workspace.templateID)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp