Examples of ErrorObject


Examples of com.nimbusds.oauth2.sdk.ErrorObject

     
    } catch (ResolveException e) {
     
      // Repackage exception with redirection URI, state, error object
     
      ErrorObject err;
     
      if (request.getRequestURI() != null)
        err = OIDCError.INVALID_REQUEST_URI;
      else
        err = OIDCError.INVALID_REQUEST_OBJECT;
View Full Code Here

Examples of org.jongo.util.ErrorObject

    JacksonEngine engine = new JacksonEngine(new Mapping.Builder().build());

    @Test(expected = MarshallingException.class)
    public void shouldFailWhenUnableToMarshall() throws Exception {

        engine.marshall(new ErrorObject());
    }
View Full Code Here

Examples of org.jongo.util.ErrorObject

    @Test
    public void shouldFailWhenMarshallerFail() throws Exception {

        try {
            collection.save(new ErrorObject());
            Assert.fail();
        } catch (IllegalArgumentException e) {
            assertThat(e.getMessage()).contains("Unable to save object");
        }
    }
View Full Code Here

Examples of org.jongo.util.ErrorObject

    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldFailWithInvalidParameter() throws Exception {

        factory.createQuery("{id:#}", new ErrorObject());
    }
View Full Code Here

Examples of org.jongo.util.ErrorObject

    }

    @Test
    public void shouldThrowMarshallExceptionOnInvalidParameter() throws Exception {
        try {
            collection.findOne("{id:#}", new ErrorObject()).as(Friend.class);
        } catch (Exception e) {
            assertThat(e).isInstanceOf(IllegalArgumentException.class);
            assertThat(e.getCause()).isInstanceOf(MarshallingException.class);
            assertThat(e.getMessage()).contains("{id:#}");
        }
View Full Code Here

Examples of org.unidal.web.mvc.ErrorObject

        SigninContext sc = createSigninContext(ctx);
        Credential credential = new Credential(account, password);
        Session session = m_signinService.signin(sc, credential);

        if (session == null) {
          ctx.addError(new ErrorObject("biz.login"));
        } else {
          redirect(ctx, payload);
          return;
        }
      } else {
        ctx.addError(new ErrorObject("biz.login.input").addArgument("account", account).addArgument("password",
              password));
      }
    } else if (action == Action.LOGOUT) {
      SigninContext sc = createSigninContext(ctx);
View Full Code Here

Examples of webworks.media.barcode.ErrorObject

              
                try {
                  barcodeScanner.stopScan();
            cameraPlayer.close();
                    UiApplication.getUiApplication().popScreen(ScannerScreen.this);
          errorCallback.invoke(null,new Object[] {new ErrorObject(-1, text)});
        } catch (Exception e) {
        }
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.