Skip to content

Commit bb9ea0e

Browse files
GH-264 fixing typo
1 parent 41d48a7 commit bb9ea0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ims/src/main/java/com/adobe/aio/ims/ImsService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public Builder workspace(Workspace workspace) {
6161
* Builds an IMS Service instance.
6262
*
6363
* @return a configured IMS Service
64-
* @throws IllegalStateException if the Workspace authentication context is not valid.
64+
* @throws IllegalArgumentException if the Workspace authentication context is not valid.
6565
*/
6666
public ImsService build() throws IllegalStateException {
6767
if (workspace == null) {
68-
throw new IllegalStateException("Workspace is required to build ImsService");
68+
throw new IllegalArgumentException("Workspace is required to build ImsService");
6969
}
7070
workspace.validateAll();
7171
return new FeignImsService(this.workspace);

0 commit comments

Comments
 (0)