1 parent 41d48a7 commit bb9ea0eCopy full SHA for bb9ea0e
1 file changed
ims/src/main/java/com/adobe/aio/ims/ImsService.java
@@ -61,11 +61,11 @@ public Builder workspace(Workspace workspace) {
61
* Builds an IMS Service instance.
62
*
63
* @return a configured IMS Service
64
- * @throws IllegalStateException if the Workspace authentication context is not valid.
+ * @throws IllegalArgumentException if the Workspace authentication context is not valid.
65
*/
66
public ImsService build() throws IllegalStateException {
67
if (workspace == null) {
68
- throw new IllegalStateException("Workspace is required to build ImsService");
+ throw new IllegalArgumentException("Workspace is required to build ImsService");
69
}
70
workspace.validateAll();
71
return new FeignImsService(this.workspace);
0 commit comments