#ignite-106: Change exception declaration in examples.

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2efa1814
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2efa1814
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2efa1814

Branch: refs/heads/ignite-54-55
Commit: 2efa1814d5aac8137843eca5637952f0c890da71
Parents: 8520179
Author: ivasilinets <vasilinetc....@gmail.com>
Authored: Wed Feb 4 01:11:59 2015 +0300
Committer: ivasilinets <vasilinetc....@gmail.com>
Committed: Wed Feb 4 01:11:59 2015 +0300

----------------------------------------------------------------------
 .../ignite/examples/compute/ComputeBroadcastExample.java       | 2 +-
 .../apache/ignite/examples/compute/ComputeCallableExample.java | 4 ++--
 .../apache/ignite/examples/compute/ComputeClosureExample.java  | 4 ++--
 .../ignite/examples/compute/ComputeExecutorServiceExample.java | 2 +-
 .../ignite/examples/compute/ComputeProjectionExample.java      | 2 +-
 .../examples/compute/failover/ComputeFailoverExample.java      | 4 ++--
 .../ignite/examples/datagrid/CacheContinuousQueryExample.java  | 4 ++--
 .../ignite/examples/datagrid/CacheDataLoaderExample.java       | 2 +-
 .../ignite/examples/datagrid/CachePopularNumbersExample.java   | 2 +-
 .../apache/ignite/examples/datagrid/CachePutGetExample.java    | 4 ++--
 .../org/apache/ignite/examples/datagrid/CacheQueryExample.java | 2 +-
 .../datagrid/datastructures/CacheAtomicLongExample.java        | 2 +-
 .../datagrid/datastructures/CacheCountDownLatchExample.java    | 4 ++--
 .../examples/datagrid/starschema/CacheStarSchemaExample.java   | 4 ++--
 .../ignite/examples/datagrid/store/CacheStoreExample.java      | 2 +-
 .../examples/datagrid/store/CacheStoreLoadDataExample.java     | 2 +-
 .../java/org/apache/ignite/examples/events/EventsExample.java  | 4 ++--
 .../java/org/apache/ignite/examples/fs/IgniteFsExamples.java   | 2 +-
 .../org/apache/ignite/examples/messaging/MessagingExample.java | 2 +-
 .../ignite/examples/misc/springbean/SpringBeanExample.java     | 2 +-
 .../org/apache/ignite/examples/services/ServicesExample.java   | 6 ++++++
 .../ignite/examples/streaming/StreamingCheckInExample.java     | 2 +-
 .../examples/streaming/StreamingPopularNumbersExample.java     | 2 +-
 .../ignite/examples/streaming/StreamingPriceBarsExample.java   | 2 +-
 24 files changed, 37 insertions(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java
index cdd7241..bb23410 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java
@@ -40,7 +40,7 @@ public class ComputeBroadcastExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
             System.out.println();
             System.out.println(">>> Compute broadcast example started.");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java
index 505da45..e0f22de 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java
@@ -41,9 +41,9 @@ public class ComputeCallableExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws Exception If example execution failed.
+     * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
             System.out.println();
             System.out.println(">>> Compute callable example started.");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java
index b2126b9..13c9359 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java
@@ -40,9 +40,9 @@ public class ComputeClosureExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws Exception If example execution failed.
+     * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
             System.out.println();
             System.out.println(">>> Compute closure example started.");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java
index db5938a..75fda35 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java
@@ -37,7 +37,7 @@ public final class ComputeExecutorServiceExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     @SuppressWarnings({"TooBroadScope"})
     public static void main(String[] args) throws Exception {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java
index e6c19de..7465429 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java
@@ -38,7 +38,7 @@ public class ComputeProjectionExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
             if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2))
                 return;

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java
index bd3b18b..46923eb 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java
@@ -38,9 +38,9 @@ public class ComputeFailoverExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws Exception If example execution failed.
+     * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException{
         try (Ignite ignite = 
Ignition.start(ComputeFailoverNodeStartup.configuration())) {
             if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2))
                 return;

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java
index 9ee65f7..866967f 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java
@@ -41,9 +41,9 @@ public class CacheContinuousQueryExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteCheckedException If example execution failed.
+     * @throws Exception If example execution failed.
      */
-    public static void main(String[] args) throws IgniteCheckedException, 
InterruptedException {
+    public static void main(String[] args) throws Exception {
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {
             System.out.println();
             System.out.println(">>> Cache continuous query example started.");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java
index 5fd0b96..775884c 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java
@@ -48,7 +48,7 @@ public class CacheDataLoaderExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         ExamplesUtils.checkMinMemory(MIN_MEMORY);
 
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
index b65aa30..0413232 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java
@@ -57,7 +57,7 @@ public class CachePopularNumbersExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         Timer popularNumbersQryTimer = new Timer("numbers-query-worker");
 
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java
index cadc24f..fb4a16d 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java
@@ -38,9 +38,9 @@ public class CachePutGetExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws Exception If example execution failed.
+     * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {
             // Clean up caches on all nodes before run.
             ignite.jcache(CACHE_NAME).clear();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
index 4429138..3e14ec2 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java
@@ -72,7 +72,7 @@ public class CacheQueryExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     public static void main(String[] args) throws Exception {
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java
index 9af0a43..a4d1cee 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java
@@ -44,7 +44,7 @@ public final class CacheAtomicLongExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws IgniteCheckedException If example execution failed.
      */
     public static void main(String[] args) throws IgniteCheckedException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java
index d93244c..de01b34 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java
@@ -44,9 +44,9 @@ public class CacheCountDownLatchExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws IgniteCheckedException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteCheckedException {
         try (Ignite ignite = 
Ignition.start("examples/config/example-cache.xml")) {
             System.out.println();
             System.out.println(">>> Cache atomic countdown latch example 
started.");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java
index 46c3506..dbd4a65 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java
@@ -67,9 +67,9 @@ public class CacheStarSchemaExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws IgniteCheckedException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteCheckedException {
         Ignite ignite = Ignition.start("examples/config/example-cache.xml");
 
         System.out.println();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreExample.java
index 0f57a4f..9499b9a 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreExample.java
@@ -40,7 +40,7 @@ public class CacheStoreExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         IgniteConfiguration cfg = CacheNodeWithStoreStartup.configure();
 
         // To start ignite with desired configuration uncomment the 
appropriate line.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreLoadDataExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreLoadDataExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreLoadDataExample.java
index d571c3c..9e2fb62 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreLoadDataExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheStoreLoadDataExample.java
@@ -43,7 +43,7 @@ public class CacheStoreLoadDataExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         ExamplesUtils.checkMinMemory(MIN_MEMORY);
 
         try (Ignite ignite = 
Ignition.start(CacheNodeWithStoreStartup.configure())) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java 
b/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java
index bb15413..65bb62c 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java
@@ -43,7 +43,7 @@ public class EventsExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     public static void main(String[] args) throws Exception {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
@@ -66,7 +66,7 @@ public class EventsExample {
      *
      * @throws IgniteException If failed.
      */
-    private static void localListen() throws Exception {
+    private static void localListen() throws IgniteException {
         System.out.println();
         System.out.println(">>> Local event listener example.");
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/fs/IgniteFsExamples.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/fs/IgniteFsExamples.java 
b/examples/src/main/java/org/apache/ignite/examples/fs/IgniteFsExamples.java
index 4d5c1c4..08d0a2d 100644
--- a/examples/src/main/java/org/apache/ignite/examples/fs/IgniteFsExamples.java
+++ b/examples/src/main/java/org/apache/ignite/examples/fs/IgniteFsExamples.java
@@ -40,7 +40,7 @@ public final class IgniteFsExamples {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     public static void main(String[] args) throws Exception {
         Ignite ignite = 
Ignition.start("examples/config/filesystem/example-ignitefs.xml");

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java
index 4ad667b..6dd930e 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java
@@ -50,7 +50,7 @@ public final class MessagingExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     public static void main(String[] args) throws Exception {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
index 6f695fe..b75840e 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java
@@ -46,7 +46,7 @@ public final class SpringBeanExample {
      * Executes example.
      *
      * @param args Command line arguments, none required.
-     * @throws IgniteException If example execution failed.
+     * @throws Exception If example execution failed.
      */
     public static void main(String[] args) throws Exception {
         System.out.println();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/services/ServicesExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/services/ServicesExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/services/ServicesExample.java
index b7ce28d..6c99f5c 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/services/ServicesExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/services/ServicesExample.java
@@ -38,6 +38,12 @@ import java.util.*;
  * cannot be peer-deployed and classes must be on the classpath for every node.
  */
 public class ServicesExample {
+    /**
+     * Executes example.
+     *
+     * @param args Command line arguments, none required.
+     * @throws Exception If example execution failed.
+     */
     public static void main(String[] args) throws Exception {
         try (Ignite ignite = 
Ignition.start("examples/config/example-compute.xml")) {
             ClusterGroup rmts = ignite.cluster().forRemotes();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java
index 19c6f5d..87decd5 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java
@@ -103,7 +103,7 @@ public class StreamingCheckInExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         Timer timer = new Timer("check-in-query-worker");
 
         // Start ignite.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java
index cb0eb7d..ebb4b36 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java
@@ -93,7 +93,7 @@ public class StreamingPopularNumbersExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         Timer popularNumbersQryTimer = new Timer("numbers-query-worker");
 
         // Start ignite.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2efa1814/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java
index 410f633..4fb6f3a 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java
@@ -75,7 +75,7 @@ public class StreamingPriceBarsExample {
      * @param args Command line arguments, none required.
      * @throws IgniteException If example execution failed.
      */
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws IgniteException {
         Timer timer = new Timer("priceBars");
 
         // Start ignite.

Reply via email to