]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherrry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 21 Oct 2022 11:38:08 +0000 (13:38 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Oct 2022 11:39:08 +0000 (13:39 +0200)
- this is not an argument/parameter of a method. it might have happened due
  to a logic error, therefore it is an unexpected state

src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java

index 1b52b855744f96829bd1a9cb0a5ba5e9d53d1bcf..045c81263937a42655a6de11836623c4f34279a4 100644 (file)
@@ -472,13 +472,13 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs
                                throw new NullPointerException("phone.phoneAreaCode is null"); //NOI18N
                        } else if (landLine.getPhoneAreaCode() < 1) {
                                // Abort here
-                               throw new IllegalArgumentException("phone.phoneAreaCode is zero or below."); //NOI18N
+                               throw new IllegalStateException("phone.phoneAreaCode is zero or below."); //NOI18N
                        } else if (landLine.getPhoneNumber() == null) {
                                // Is null
                                throw new NullPointerException("phone.phoneNumber is null"); //NOI18N
                        } else if (landLine.getPhoneNumber() < 1) {
                                // Abort here
-                               throw new IllegalArgumentException("phone.phoneNumber is zero or below."); //NOI18N
+                               throw new IllegalStateException("phone.phoneNumber is zero or below."); //NOI18N
                        }
 
                        // Set phone number
@@ -493,13 +493,13 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs
                                throw new NullPointerException("fax.phoneAreaCode is null"); //NOI18N
                        } else if (fax.getPhoneAreaCode() < 1) {
                                // Abort here
-                               throw new IllegalArgumentException("fax.phoneAreaCode is zero or below."); //NOI18N
+                               throw new IllegalStateException("fax.phoneAreaCode is zero or below."); //NOI18N
                        } else if (fax.getPhoneNumber() == null) {
                                // Is null
                                throw new NullPointerException("fax.phoneNumber is null"); //NOI18N
                        } else if (fax.getPhoneNumber() < 1) {
                                // Abort here
-                               throw new IllegalArgumentException("fax.phoneNumber is zero or below."); //NOI18N
+                               throw new IllegalStateException("fax.phoneNumber is zero or below."); //NOI18N
                        }
 
                        // Set fax number
@@ -514,7 +514,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs
                                throw new NullPointerException("cmobile.phoneNumber is null"); //NOI18N
                        } else if (mobile.getMobileNumber() < 1) {
                                // Abort here
-                               throw new IllegalArgumentException("cmobile.phoneNumber is zero or below."); //NOI18N
+                               throw new IllegalStateException("cmobile.phoneNumber is zero or below."); //NOI18N
                        }
 
                        // Set cmobile number