congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UserNotFoundException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
org.apache.archiva.redback.users.UserNotFoundException

Best Java code snippets using org.apache.archiva.redback.users.UserNotFoundException.getMessage (Showing top 14 results out of 315)

origin: stackoverflow.com

 @Provider
public class UserNotFoundMapper implements
    ExceptionMapper<UserNotFoundException> {
  @Override
  public Response toResponse(UserNotFoundException ex) {
    return Response.status(404).entity(ex.getMessage()).type("text/plain")
        .build();
  }
}
origin: stackoverflow.com

 @Provider
public class UserNotFoundMapper implements
  ExceptionMapper<UserNotFoundException> {
  @Override
   public Response toResponse(UserNotFoundException ex) {
     return Response.status(404).entity(ex.getMessage()).type("text/plain")
      .build();
  }
}
origin: stackoverflow.com

 @Provider
public class UserNotFoundMapper implements ExceptionMapper<UserNotFoundException> {
  @Override
  public Response toResponse(UserNotFoundException e) {
    return Response.status(404).entity(e.getMessage()).type("text/plain").build();
  }
}
origin: org.apache.archiva.redback/redback-rest-services

log.error( e.getMessage(), e );
throw new RedbackServiceException( e.getMessage() );
origin: org.apache.archiva.redback/redback-rest-services

log.info( "user {} not found", e.getMessage() );
List<ErrorMessage> errorMessages = new ArrayList<ErrorMessage>( 2 );
ErrorMessage errorMessage = new ErrorMessage( "cannot.update.user.not.found", new String[]{ principal } );
origin: org.apache.archiva.redback/redback-rest-services

log.info( "user {} not found", e.getMessage() );
List<ErrorMessage> errorMessages = new ArrayList<ErrorMessage>( 2 );
ErrorMessage errorMessage = new ErrorMessage( "cannot.update.user.not.found", new String[]{ principal } );
origin: org.apache.archiva.redback/redback-rest-services

log.error( e.getMessage(), e );
throw new RedbackServiceException( e.getMessage() );
origin: org.apache.archiva.redback/redback-rest-services

throw new RedbackServiceException( e.getMessage() );
origin: org.apache.archiva.redback/redback-rest-services

new ErrorMessage( "user.does.not.exist", new String[]{ username, e.getMessage() } ) );
origin: org.apache.archiva/archiva-security

throw new UnauthorizedException( e.getMessage(), e );
origin: apache/archiva

throw new UnauthorizedException( e.getMessage(), e );
origin: org.apache.archiva.redback/redback-rest-services

throw new RedbackServiceException( e.getMessage() );
origin: org.apache.archiva.redback/redback-rest-services

new ErrorMessage( "user.does.not.exist", new String[]{ username, e.getMessage() } ) );
origin: org.apache.archiva.redback/redback-rest-services

public Boolean updateUser( User user )
  throws RedbackServiceException
{
  try
  {
    org.apache.archiva.redback.users.User rawUser = userManager.findUser( user.getUsername(), false );
    rawUser.setFullName( user.getFullName() );
    rawUser.setEmail( user.getEmail() );
    rawUser.setValidated( user.isValidated() );
    rawUser.setLocked( user.isLocked() );
    rawUser.setPassword( user.getPassword() );
    rawUser.setPasswordChangeRequired( user.isPasswordChangeRequired() );
    rawUser.setPermanent( user.isPermanent() );
    userManager.updateUser( rawUser );
    return Boolean.TRUE;
  }
  catch ( UserNotFoundException e )
  {
    throw new RedbackServiceException( e.getMessage() );
  }
  catch ( UserManagerException e )
  {
    throw new RedbackServiceException( new ErrorMessage( e.getMessage() ) );
  }
}
org.apache.archiva.redback.usersUserNotFoundExceptiongetMessage

Popular methods of UserNotFoundException

  • <init>

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now