Examples of reason()


Examples of com.db4o.diagnostic.DiagnosticBase.reason()

          return;
        if(arg0 instanceof ClassHasNoFields)
          return; // Ignore
        if(arg0 instanceof DiagnosticBase) {
          DiagnosticBase d = (DiagnosticBase) arg0;
          Logger.debug(this, "Diagnostic: "+d.getClass()+" : "+d.problem()+" : "+d.solution()+" : "+d.reason(), new Exception("debug"));
        } else
          Logger.debug(this, "Diagnostic: "+arg0+" : "+arg0.getClass(), new Exception("debug"));
      }
  }
  /**
 
View Full Code Here

Examples of com.sissi.protocol.muc.Invite.reason()

   */
  public Map<String, Object> write(Element element) {
    Invite invite = Message.class.cast(element).getMuc().getInvite();
    Map<String, Object> entity = super.write(element);
    entity.put(Dictionary.FIELD_INVITE, invite.getFrom());
    entity.put(Dictionary.FIELD_REASON, invite.reason());
    entity.put(Dictionary.FIELD_CONTINUE, invite.continued());
    entity.put(Dictionary.FIELD_TYPE, Dictionary.FIELD_INVITE);
    return entity;
  }

View Full Code Here

Examples of com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.plugins.claim.Claim.reason()

        assertThat(claim, instanceOf(Claimed.class));

        assertThat(claim.wasMade(), is(true));
        assertThat(claim.author(),  is(AUTHOR));
        assertThat(claim.reason(),  is(REASON));
    }

    /*
     * Analysis tests
     */
 
View Full Code Here

Examples of erjang.ErlangError.reason()

      return new ETuple2(ERT.am_error, e.reason());
    } catch (ThreadDeath e) {
      throw e;
    } catch (Throwable e) {
      ErlangError ee = new ErlangError(ERT.am_badfile, e, mod, bin);
      ETuple2 result = new ETuple2(ERT.am_error, ee.reason());
     
      log.log(Level.SEVERE, "cannot load module "+mod, e);
     
      return result;
    }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Disabled.reason()

    }

    private static DisabledFacet createFromAnnotationIfPossible(final ProcessMethodContext processMethodContext) {
        final Disabled annotation = Annotations.getAnnotation(processMethodContext.getMethod(), Disabled.class);
        return annotation != null
                ? new DisabledFacetAnnotation(annotation.when(), annotation.where(), annotation.reason(), processMethodContext.getFacetHolder())
                : null;
    }

    private static DisabledFacet createFromMetadataPropertiesIfPossible(
            final ProcessContextWithMetadataProperties<? extends FacetHolder> pcwmp) {
View Full Code Here

Examples of org.apache.isis.applib.annotation.Disabled.reason()

    }

    private static DisabledFacet createFromAnnotationIfPossible(final ProcessMethodContext processMethodContext) {
        final Disabled annotation = Annotations.getAnnotation(processMethodContext.getMethod(), Disabled.class);
        return annotation != null
                ? new DisabledFacetAnnotation(annotation.when(), annotation.where(), annotation.reason(), processMethodContext.getFacetHolder())
                : null;
    }

    private static DisabledFacet createFromMetadataPropertiesIfPossible(
            final ProcessContextWithMetadataProperties<? extends FacetHolder> pcwmp) {
View Full Code Here

Examples of org.bukkit.Warning.reason()

                                    "\"%s\" has registered a listener for %s on method \"%s\", but the event is Deprecated." +
                                    " \"%s\"; please notify the authors %s.",
                                    plugin.getDescription().getFullName(),
                                    clazz.getName(),
                                    method.toGenericString(),
                                    (warning != null && warning.reason().length() != 0) ? warning.reason() : "Server performance will be affected",
                                    Arrays.toString(plugin.getDescription().getAuthors().toArray())),
                            warningState == WarningState.ON ? new AuthorNagException(null) : null);
                    break;
                }
            }
View Full Code Here

Examples of org.bukkit.Warning.reason()

                                    "\"%s\" has registered a listener for %s on method \"%s\", but the event is Deprecated." +
                                    " \"%s\"; please notify the authors %s.",
                                    plugin.getDescription().getFullName(),
                                    clazz.getName(),
                                    method.toGenericString(),
                                    (warning != null && warning.reason().length() != 0) ? warning.reason() : "Server performance will be affected",
                                    Arrays.toString(plugin.getDescription().getAuthors().toArray())),
                            warningState == WarningState.ON ? new AuthorNagException(null) : null);
                    break;
                }
            }
View Full Code Here

Examples of org.eclipse.jetty.client.HttpResponse.reason()

            String[] status = fields.get(HTTPSPDYHeader.STATUS.name(spdy)).getValue().split(" ", 2);

            Integer code = Integer.parseInt(status[0]);
            response.status(code);
            String reason = status.length < 2 ? HttpStatus.getMessage(code) : status[1];
            response.reason(reason);

            if (responseBegin(exchange))
            {
                for (Fields.Field field : fields)
                {
View Full Code Here

Examples of org.elasticsearch.cluster.metadata.SnapshotMetaData.ShardSnapshotStatus.reason()

                    ArrayList<SnapshotShardFailure> shardFailures = newArrayList();
                    for (Map.Entry<ShardId, ShardSnapshotStatus> shardStatus : entry.shards().entrySet()) {
                        ShardId shardId = shardStatus.getKey();
                        ShardSnapshotStatus status = shardStatus.getValue();
                        if (status.state().failed()) {
                            failures.add(new ShardSearchFailure(status.reason(), new SearchShardTarget(status.nodeId(), shardId.getIndex(), shardId.id())));
                            shardFailures.add(new SnapshotShardFailure(status.nodeId(), shardId.getIndex(), shardId.id(), status.reason()));
                        }
                    }
                    Snapshot snapshot = repository.finalizeSnapshot(snapshotId, failure, entry.shards().size(), ImmutableList.copyOf(shardFailures));
                    removeSnapshotFromClusterState(snapshotId, new SnapshotInfo(snapshot), null);
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.