diff --git a/src/main/java/org/apache/hadoop/fs/CosFileSystem.java b/src/main/java/org/apache/hadoop/fs/CosFileSystem.java index fb81dfc..7e6bd58 100644 --- a/src/main/java/org/apache/hadoop/fs/CosFileSystem.java +++ b/src/main/java/org/apache/hadoop/fs/CosFileSystem.java @@ -723,7 +723,9 @@ public void setOperationCancellingStatusProvider(OperationCancellingStatusProvid if (this.actualImplFS instanceof CosNFileSystem) { ((CosNFileSystem) this.actualImplFS).setOperationCancellingStatusProvider(operationCancellingStatusProvider); } else { - throw new UnsupportedOperationException("Not supported currently"); + throw new UnsupportedOperationException( + String.format("Not supported currently for the filesystem '%s'.", + this.actualImplFS.getClass().getName())); } } @@ -731,7 +733,9 @@ public void removeOperationCancelingStatusProvider() { if (this.actualImplFS instanceof CosNFileSystem) { ((CosNFileSystem) this.actualImplFS).removeOperationCancelingStatusProvider(); } else { - throw new UnsupportedOperationException("Not supported currently"); + throw new UnsupportedOperationException( + String.format("Not supported currently for the filesystem '%s'.", + this.actualImplFS.getClass().getName())); } } }