formatting

This commit is contained in:
Dave
2015-06-27 21:50:28 +02:00
parent 7bb6c6fdfa
commit 34b9a748f9
36 changed files with 2381 additions and 2360 deletions

View File

@@ -1,29 +1,26 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoByteSetBadDecryptionException is triggered when no- is unable to
* decrypt a given byte stream.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoByteSetBadDecryptionException is triggered when no- is unable to decrypt a given byte stream.
*/
package nodash.exceptions;
public class NoByteSetBadDecryptionException extends NoDashException {
private static final long serialVersionUID = -8579497499272656543L;
public NoByteSetBadDecryptionException(Exception e) {
super(e);
}
private static final long serialVersionUID = -8579497499272656543L;
public NoByteSetBadDecryptionException(Exception e) {
super(e);
}
}

View File

@@ -1,21 +1,19 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoCannotGetInfluenceException is returned when an action is unable to
* render a successful influence for the target, instead returning an
* influence to be returned to the sender if possible.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoCannotGetInfluenceException is returned when an action is unable to render a successful
* influence for the target, instead returning an influence to be returned to the sender if
* possible.
*/
package nodash.exceptions;
@@ -23,16 +21,16 @@ package nodash.exceptions;
import nodash.models.NoInfluence;
public class NoCannotGetInfluenceException extends Exception {
private static final long serialVersionUID = 4581361079067540974L;
private NoInfluence returnable;
public NoCannotGetInfluenceException(NoInfluence returnable) {
super();
this.returnable = returnable;
}
public NoInfluence getResponseInfluence() {
return returnable;
}
private static final long serialVersionUID = 4581361079067540974L;
private NoInfluence returnable;
public NoCannotGetInfluenceException(NoInfluence returnable) {
super();
this.returnable = returnable;
}
public NoInfluence getResponseInfluence() {
return returnable;
}
}

View File

@@ -1,17 +1,15 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoDashException is the base class for no- related exceptions.
*/
@@ -19,13 +17,13 @@
package nodash.exceptions;
public class NoDashException extends Exception {
private static final long serialVersionUID = -8579497499272656543L;
private static final long serialVersionUID = -8579497499272656543L;
public NoDashException() {
super();
}
public NoDashException(Exception e) {
super(e);
}
public NoDashException() {
super();
}
public NoDashException(Exception e) {
super(e);
}
}

View File

@@ -1,35 +1,33 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoDashFatalException is the base exception for no- related runtime exceptions.
*/
package nodash.exceptions;
public class NoDashFatalException extends RuntimeException {
private static final long serialVersionUID = -8254102569327237811L;
public class NoDashFatalException extends RuntimeException {
private static final long serialVersionUID = -8254102569327237811L;
public NoDashFatalException(Exception e) {
super(e);
}
public NoDashFatalException(Exception e) {
super(e);
}
public NoDashFatalException(String string) {
super(string);
}
public NoDashFatalException(String string, Exception e) {
super(string, e);
}
public NoDashFatalException(String string) {
super(string);
}
public NoDashFatalException(String string, Exception e) {
super(string, e);
}
}

View File

@@ -1,32 +1,30 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoDashSessionBadUUIDException is triggered when the NoSessionSphere is
* unable to find a valid session for the provided UUID.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoDashSessionBadUUIDException is triggered when the NoSessionSphere is unable to find a valid
* session for the provided UUID.
*/
package nodash.exceptions;
public class NoDashSessionBadUUIDException extends Exception {
private static final long serialVersionUID = -402131397575158344L;
private static final long serialVersionUID = -402131397575158344L;
public NoDashSessionBadUUIDException() {
super();
}
public NoDashSessionBadUUIDException(Exception e) {
super(e);
}
public NoDashSessionBadUUIDException() {
super();
}
public NoDashSessionBadUUIDException(Exception e) {
super(e);
}
}

View File

@@ -1,25 +1,22 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoSessionAlreadyAWaitingConfirmationException is triggered when a
* save request is attempted for a session, but it is already awaiting
* a confirmation upload.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoSessionAlreadyAWaitingConfirmationException is triggered when a save request is attempted for a
* session, but it is already awaiting a confirmation upload.
*/
package nodash.exceptions;
public class NoSessionAlreadyAwaitingConfirmationException extends NoDashException {
private static final long serialVersionUID = 6046203718016296554L;
private static final long serialVersionUID = 6046203718016296554L;
}

View File

@@ -1,24 +1,22 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoSessionConfirmedException is triggered when an interaction attempt is
* made on a session that has recently been confirmed and thus closed.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoSessionConfirmedException is triggered when an interaction attempt is made on a session that
* has recently been confirmed and thus closed.
*/
package nodash.exceptions;
public class NoSessionConfirmedException extends NoDashException {
private static final long serialVersionUID = -8065331145629402524L;
private static final long serialVersionUID = -8065331145629402524L;
}

View File

@@ -1,24 +1,21 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoSessionExpiredException is thrown when an interaction is attempted with
* an expired session.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoSessionExpiredException is thrown when an interaction is attempted with an expired session.
*/
package nodash.exceptions;
public class NoSessionExpiredException extends NoDashException {
private static final long serialVersionUID = -541733773743173644L;
private static final long serialVersionUID = -541733773743173644L;
}

View File

@@ -1,25 +1,22 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoSessionNotAwaitingConfirmationException is thrown when an attempt is made
* to confirm a session with a password/byte[] combination, but the session is
* not currently awaiting a confirmation.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoSessionNotAwaitingConfirmationException is thrown when an attempt is made to confirm a session
* with a password/byte[] combination, but the session is not currently awaiting a confirmation.
*/
package nodash.exceptions;
public class NoSessionNotAwaitingConfirmationException extends NoDashException {
private static final long serialVersionUID = -2563955621281305198L;
private static final long serialVersionUID = -2563955621281305198L;
}

View File

@@ -1,24 +1,22 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoSessionNotChangedException is thrown when a save is requested for a session
* whilst the user object remains unchanged.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoSessionNotChangedException is thrown when a save is requested for a session whilst the user
* object remains unchanged.
*/
package nodash.exceptions;
public class NoSessionNotChangedException extends NoDashException {
private static final long serialVersionUID = 8049751796255114602L;
private static final long serialVersionUID = 8049751796255114602L;
}

View File

@@ -1,25 +1,23 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoUserAlreadyOnlineException is thrown when a login attempt is made for
* a user who is currently online.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoUserAlreadyOnlineException is thrown when a login attempt is made for a user who is currently
* online.
*/
package nodash.exceptions;
public class NoUserAlreadyOnlineException extends NoDashException {
private static final long serialVersionUID = -2922060333175653034L;
private static final long serialVersionUID = -2922060333175653034L;
}

View File

@@ -1,24 +1,21 @@
/*
* Copyright 2014 David Horscroft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* NoUserNotValidException is thrown when a user file does not hash to a known
* hash.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* NoUserNotValidException is thrown when a user file does not hash to a known hash.
*/
package nodash.exceptions;
public class NoUserNotValidException extends NoDashException {
private static final long serialVersionUID = -6432604940919299965L;
private static final long serialVersionUID = -6432604940919299965L;
}